editor: fix crash on reverting from disk and the selected notes weren't found

This commit is contained in:
Glenn Maynard
2004-04-24 20:57:30 +00:00
parent eeeb9809f6
commit 4bdf480a6f
+1 -1
View File
@@ -1427,7 +1427,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
// Don't allow an autogen match. This can't be what they chose to
// edit originally because autogen steps are hidden.
if( pSteps->IsAutogen() )
if( pSteps && pSteps->IsAutogen() )
pSteps = NULL;
/* If we couldn't find the steps we were on before, warn and use the first available. */