diff --git a/eeschema/eeschema.cpp b/eeschema/eeschema.cpp index 21b260e8d0..38c4b1e545 100644 --- a/eeschema/eeschema.cpp +++ b/eeschema/eeschema.cpp @@ -104,7 +104,10 @@ void WinEDA_App::MacOpenFile( const wxString &fileName ) wxFileName filename = fileName; WinEDA_SchematicFrame * frame = ((WinEDA_SchematicFrame*) GetTopWindow()); - if(!filename.FileExists()) + if( !frame ) + return; + + if( !filename.FileExists() ) return; frame->LoadOneEEProject( fileName, false );