#4881 Fix crash when creation global annotations with geomech view present

This commit is contained in:
Jacob Støren 2019-10-17 10:07:41 +02:00
parent b2015ce91b
commit caed6bfa91

View File

@ -225,7 +225,10 @@ void RimAnnotationCollection::updateViewAnnotationCollections()
for ( const auto* view : views )
{
view->annotationCollection()->onGlobalCollectionChanged( this );
if (view->annotationCollection())
{
view->annotationCollection()->onGlobalCollectionChanged( this );
}
}
}