mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1257 Added null pointer guarding based on reports from CppCheck
This commit is contained in:
@@ -142,11 +142,14 @@ void RimEclipsePropertyFilterCollection::updateIconState()
|
||||
|
||||
RimEclipseView* 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