diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 42641ee..1d4515c 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -597,7 +597,8 @@ void CDockWidget::toggleViewInternal(bool Open) CDockWidget* TopLevelDockWidgetAfter = DockContainer ? DockContainer->topLevelDockWidget() : nullptr; CDockWidget::emitTopLevelEventForWidget(TopLevelDockWidgetAfter, true); - CFloatingDockContainer* FloatingContainer = DockContainer->floatingWidget(); + CFloatingDockContainer* FloatingContainer = DockContainer + ? DockContainer->floatingWidget() : nullptr; if (FloatingContainer) { FloatingContainer->updateWindowTitle();