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:
Mattia Barbon 2003-07-02 21:04:24 +00:00
parent 28ce308659
commit d546eba94e

View File

@ -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