diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx index eb396ea0a7c6f4184545b180bf0311c5e1622149..95a859ebbecede54dad37cc8cbc1587330bd6b91 100644 --- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx +++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx @@ -306,7 +306,7 @@ private: } try { - math_filter->Update(); + math_filter->UpdateOutputInformation(); SetParameterDescription("exp", "Valid expression"); } catch(itk::ExceptionObject& err) @@ -315,10 +315,14 @@ private: // parser errors in the tooltip SetParameterDescription("exp", err.GetDescription()); // std::string error_string(err.GetDescription()); - // otbAppLogINFO("There was an error while parsing the expression giving " + // otbAppLogINFO("There was an error while parsing the expression given " // "its input:" + error_string ); } + catch(...) + { + SetParameterDescription("exp", "Other exception catched"); } + } void DoExecute() override {