diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx index 4b73e713dc61baa397a59adf9e4e864afe6ce560..7fba8d1b123b0c7bd8cbda2ea08406ca5fed49a8 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx @@ -624,7 +624,7 @@ CommandLineLauncher::ParamResultType CommandLineLauncher::LoadParameters() { std::string filename = m_Application->GetParameterString(paramKey); itksys::String path = itksys::SystemTools::GetFilenamePath(filename); - if (!itksys::SystemTools::FileIsDirectory(path.c_str())) + if (path!="" && !itksys::SystemTools::FileIsDirectory(path.c_str())) { std::cerr <<"ERROR: Directory doesn't exist : "<< path.c_str() << std::endl; return WRONGPARAMETERVALUE;