#1257 More null pointer guards based on CppCheck

This commit is contained in:
Magne Sjaastad
2017-02-24 16:16:58 +01:00
parent 2ce28ffff0
commit 83a1d97f33
6 changed files with 28 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ void RimGridCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField
this->firstAncestorOrThisOfType(rimView);
CVF_ASSERT(rimView);
rimView->showGridCells(isActive);
if (rimView) rimView->showGridCells(isActive);
updateUiIconFromState(isActive);
}