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

This commit is contained in:
Jacob Støren committed 2019-10-17 15:02:38 +02:00
1 parent b2015ce91b
commit caed6bfa91
1 file changed
+4 -1
@@ -225,7 +225,10 @@ void RimAnnotationCollection::updateViewAnnotationCollections()
for ( const auto* view : views )
{
view->annotationCollection()->onGlobalCollectionChanged( this );
if (view->annotationCollection())
{
view->annotationCollection()->onGlobalCollectionChanged( this );
}
}
}