mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4351 Regression test : Guard null pointer access
This commit is contained in:
@@ -1638,7 +1638,7 @@ void RiuMainWindow::refreshDrawStyleActions()
|
||||
if (!eclView)
|
||||
{
|
||||
Rim2dIntersectionView* intView = dynamic_cast<Rim2dIntersectionView*>(view);
|
||||
if (intView)
|
||||
if (intView && intView->intersection())
|
||||
{
|
||||
intView->intersection()->firstAncestorOrThisOfType(eclView);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user