Commit 3ef1ce47 authored by Rashad Kanavath's avatar Rashad Kanavath

COV: missing null check after dynamic_cast

parent 0b7ddc4f
......@@ -133,7 +133,7 @@ private:
unsigned int nbComponents = inImage->GetNumberOfComponentsPerPixel();
ListViewParameter *clParam = dynamic_cast<ListViewParameter*>(GetParameterByKey("cl"));
// Update the values of the channels to be selected if nbComponents is changed
if (clParam->GetNbChoices() != nbComponents)
if (clParam != NULL && clParam->GetNbChoices() != nbComponents)
{
ClearChoices("cl");
......
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