diff --git a/debugger/stack.c b/debugger/stack.c index 574d7349b75..dee3aacf89c 100644 --- a/debugger/stack.c +++ b/debugger/stack.c @@ -212,7 +212,7 @@ DEBUG_SetFrame(int newframe) curr_frame = 0; } - if( frames[curr_frame].frame.list.sourcefile != NULL ) + if( frames && frames[curr_frame].frame.list.sourcefile != NULL ) { DEBUG_List(&frames[curr_frame].frame.list, NULL, 0); }