]> git.saurik.com Git - wxWidgets.git/commitdiff
check that wxTheApp != NULL in wxLog::GetActiveTarget
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 1998 23:05:07 +0000 (23:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 1998 23:05:07 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index ff0532eb05c6aa48f5ab8da36c4497e6d5a869e9..525f8cfd190ddd5fb0947b1f075c00e3c856f544 100644 (file)
@@ -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?