From 7a9fa1676216c70024aef1999fe9632ce54ccbba Mon Sep 17 00:00:00 2001 From: Rexbas Date: Mon, 4 Sep 2023 20:43:21 +0200 Subject: [PATCH] Gui: Add nullptr check in showRotationCenter --- src/Gui/View3DInventorViewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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()