check that wxTheApp != NULL in wxLog::GetActiveTarget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
071cc2be5c
commit
a7489b367d
1 changed files with 2 additions and 1 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue