From d546eba94e77831c41e3370484a41181517bd611 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 2 Jul 2003 21:04:24 +0000 Subject: [PATCH] Check for null pointer. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/appbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index f3a5e7460b..96eb54acc1 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -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 -- 2.47.2