mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4881 Fix crash when creation global annotations with geomech view present
This commit is contained in:
parent
b2015ce91b
commit
caed6bfa91
@ -225,7 +225,10 @@ void RimAnnotationCollection::updateViewAnnotationCollections()
|
||||
|
||||
for ( const auto* view : views )
|
||||
{
|
||||
view->annotationCollection()->onGlobalCollectionChanged( this );
|
||||
if (view->annotationCollection())
|
||||
{
|
||||
view->annotationCollection()->onGlobalCollectionChanged( this );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user