Commit eb97ca86 authored by Antoine Regimbeau's avatar Antoine Regimbeau

BUG: protect operation in DoUpdate with HasValue(in)

parent dede77ae
......@@ -192,6 +192,8 @@ private:
void DoUpdateParameters() ITK_OVERRIDE
{
// Read information
if ( HasValue("in") )
{
typedef otb::ImageMetadataInterfaceBase ImageMetadataInterfaceType;
ImageMetadataInterfaceType::Pointer metadataInterface =
ImageMetadataInterfaceFactory::CreateIMI(GetParameterImage("in")->GetMetaDataDictionary());
......@@ -212,6 +214,8 @@ private:
SetDefaultParameterInt("channels.rgb.green", bandGreen);
SetDefaultParameterInt("channels.rgb.blue", bandBlue);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment