mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#1257 Added null pointer guarding based on reports from CppCheck
This commit is contained in:
@@ -144,11 +144,14 @@ void RimGeoMechPropertyFilterCollection::updateIconState()
|
||||
|
||||
RimGeoMechView* view = NULL;
|
||||
this->firstAncestorOrThisOfType(view);
|
||||
RimViewController* viewController = view->viewController();
|
||||
if (viewController && ( viewController->isPropertyFilterOveridden()
|
||||
|| viewController->isVisibleCellsOveridden()))
|
||||
if (view)
|
||||
{
|
||||
activeIcon = false;
|
||||
RimViewController* viewController = view->viewController();
|
||||
if (viewController && ( viewController->isPropertyFilterOveridden()
|
||||
|| viewController->isVisibleCellsOveridden()))
|
||||
{
|
||||
activeIcon = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isActive)
|
||||
|
||||
Reference in New Issue
Block a user