diff --git a/ui/uinotification.cpp b/ui/uinotification.cpp index 98a2df4..1c5dbad 100644 --- a/ui/uinotification.cpp +++ b/ui/uinotification.cpp @@ -170,7 +170,9 @@ void NotificationListener::OnAfterCloseFile(UIContext* context, FileContext* fil void NotificationListener::OnViewChange(UIContext* context, ViewFrame* frame, const QString& type) { - GlobalDebuggerUI::GetForContext(context)->SetActiveFrame(frame); + auto ui = GlobalDebuggerUI::GetForContext(context); + if (ui != nullptr) + ui->SetActiveFrame(frame); }