From 8557931349204aafaa9b649d010b244a730347fb Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 27 Mar 2013 23:36:54 -0400 Subject: [PATCH] Add sanity check. - The info list can in fact be NULL so we need to guard against that. This wouldn't currently get hit though, since the cases where the list isn't passed in are those where we only want a minimal frame anyways, so variable/return value creation wouldn't even be attempted. --- src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp index b467cd1188..026b98320a 100644 --- a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp +++ b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp @@ -673,7 +673,7 @@ DwarfImageDebugInfo::CreateFrame(Image* image, instructionPointer, functionInstance->Address() - fRelocationDelta, subprogramEntry->Variables(), subprogramEntry->Blocks()); - if (!returnValueInfos->IsEmpty()) { + if (returnValueInfos != NULL && !returnValueInfos->IsEmpty()) { _CreateReturnValues(returnValueInfos, image, frame, *stackFrameDebugInfo); }