diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 3b998ab449..f346479750 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -1298,6 +1298,10 @@ bool View3DInventorViewer::hasAxisCross() void View3DInventorViewer::showRotationCenter(bool show) { SoNode* scene = getSceneGraph(); + if (!scene) { + return; + } + auto sep = static_cast(scene); bool showEnabled = App::GetApplication()