mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 13:47:12 -05:00
#14379 Guard against missing intersection view in Show 2D Intersection View
This commit is contained in:
@@ -73,6 +73,12 @@ void RicNewIntersectionViewFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
|
||||
Rim2dIntersectionView* intersectionView = intersection->correspondingIntersectionView();
|
||||
if ( !intersectionView )
|
||||
{
|
||||
RiaLogging::error( QString( "No intersection view found for intersection '%1'." ).arg( intersection->name() ).toStdString() );
|
||||
continue;
|
||||
}
|
||||
|
||||
intersectionView->setVisible( true );
|
||||
intersectionView->loadDataAndUpdate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user