#4351 Regression test : Guard null pointer access

This commit is contained in:
Magne Sjaastad committed 2019-04-24 07:46:51 +02:00
1 parent 195fc85a5a
commit 5123d5d0c5
3 files changed
+11 -7

No files matched your search

@@ -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);
}