Check for null pointer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
28ce308659
commit
d546eba94e
@ -127,7 +127,7 @@ bool wxAppConsole::Initialize(int& argc, wxChar **argv)
|
||||
this->argc = argc;
|
||||
this->argv = argv;
|
||||
|
||||
if ( m_appName.empty() )
|
||||
if ( m_appName.empty() && argv )
|
||||
{
|
||||
// the application name is, by default, the name of its executable file
|
||||
#if wxUSE_FILENAME
|
||||
|
Loading…
Reference in New Issue
Block a user