diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 1c74dfdb5e..4911befc4e 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -846,6 +846,7 @@ int wxCmdLineParser::Parse(bool showUsage) { wxString usage; wxMessageOutput* msgOut = wxMessageOutput::Get(); + wxASSERT(msgOut); if ( showUsage ) usage = GetUsageString(); if ( msgOut ) msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );