From a7489b367d3dcf925dcd93d1b57370998d15d653 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Aug 1998 23:05:07 +0000 Subject: [PATCH] check that wxTheApp != NULL in wxLog::GetActiveTarget git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index ff0532eb05..525f8cfd19 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -227,7 +227,8 @@ wxLog *wxLog::GetActiveTarget() ms_pLogger = new wxLogStderr; #else // ask the application to create a log target for us - ms_pLogger = wxTheApp->CreateLogTarget(); + if ( wxTheApp != NULL ) + ms_pLogger = wxTheApp->CreateLogTarget(); #endif // do nothing if it fails - what can we do? -- 2.45.2