Guard null pointer

This commit is contained in:
Magne Sjaastad
2023-09-14 14:46:56 +02:00
parent bd7f34f835
commit 6f6f77322b

View File

@@ -1689,7 +1689,7 @@ void Rim3dView::updateScreenSpaceModel()
// Build annotation parts and put into screen space model
cvf::Collection<cvf::Part> partCollection;
m_viewer->currentScene()->allParts( &partCollection );
if ( m_viewer->currentScene() ) m_viewer->currentScene()->allParts( &partCollection );
RivAnnotationTools annoTool;
if ( m_useCustomAnnotationStrategy )