Skip to content
Snippets Groups Projects
Commit 4e5c7f67 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed null dereference warned by cppcheck

Just above the changed line, there’s a branch for ‘bset’
being null, then a vtkErrorMacro, but if that happens
bset is later unconditionally dereferenced.
parent 6a841b65
Branches
No related tags found
No related merge requests found
......@@ -645,7 +645,7 @@ void vtkMultiThreshold::UpdateDependents(
}
// If this dependent state has already been handled (i.e., is INCLUDE or EXCLUDE), skip the rest of the loop
if ( setStates[bset->Id] < INCONCLUSIVE )
if ( ! bset || ( setStates[bset->Id] < INCONCLUSIVE ) )
continue;
int decision = INCONCLUSIVE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment