System : Added asserts and initialized pointer before calling firstAnchestorOrThisOfType()

This commit is contained in:
Magne Sjaastad
2015-10-26 10:14:45 +01:00
parent 01224dd5e6
commit 930209f527
5 changed files with 5 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ void RimGeoMechCellColors::updateIconState()
{
RimView* rimView = NULL;
this->firstAnchestorOrThisOfType(rimView);
CVF_ASSERT(rimView);
RimViewController* viewController = rimView->viewController();
if (viewController && viewController->isResultColorControlled())