Guard null pointer

This commit is contained in:
Magne Sjaastad committed 2023-09-14 15:19:01 +02:00
1 parent bd7f34f835
commit 6f6f77322b
1 file changed
+1 -1
@@ -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 )