mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06: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