Skip to content
Snippets Groups Projects
Commit 3ef1ce47 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

COV: missing null check after dynamic_cast

parent 0b7ddc4f
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment