mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
System : Added asserts and initialized pointer before calling firstAnchestorOrThisOfType()
This commit is contained in:
@@ -52,6 +52,7 @@ void RimGeoMechCellColors::updateIconState()
|
||||
{
|
||||
RimView* rimView = NULL;
|
||||
this->firstAnchestorOrThisOfType(rimView);
|
||||
CVF_ASSERT(rimView);
|
||||
|
||||
RimViewController* viewController = rimView->viewController();
|
||||
if (viewController && viewController->isResultColorControlled())
|
||||
|
||||
Reference in New Issue
Block a user