From 3ccfa976aa8bb2d09ebb3a3850b3e8d511ae873a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 24 Jan 2021 19:40:01 +0100 Subject: [PATCH] guard against nullptr exception in wxLogGui::Flush happened eg during wxUnitialize in dnd sample on macOS (open new frame, add shape, quit app) --- src/generic/logg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index f2076edbea..bc5f7df97f 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -233,7 +233,7 @@ wxString wxLogGui::GetTitle() const titleFormat = _("%s Information"); } - return wxString::Format(titleFormat, wxTheApp->GetAppDisplayName()); + return wxString::Format(titleFormat, wxTheApp ? wxTheApp->GetAppDisplayName() : _("Application")); } void