]> git.saurik.com Git - wxWidgets.git/commitdiff
Check for null pointer.
authorMattia Barbon <mbarbon@cpan.org>
Wed, 2 Jul 2003 21:04:24 +0000 (21:04 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 2 Jul 2003 21:04:24 +0000 (21:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index f3a5e7460b01f95b87dd74784b34eb739581f4c9..96eb54acc1bfef64dcb7d3c56e6fb23bb0edd642 100644 (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