From 2edf3d9fd6e8294a12ef0f28a02d3ca6113f7d3b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 28 May 2008 12:19:42 -0400 Subject: [PATCH] Don't try to load empty files (like when we're in eval()) * Source/DebuggerWindowController.m: (-[updateSourceViewer]): If the filename is empty, abort the data refresh --- Source/DebuggerWindowController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index 55a35c7..6f02f50 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -219,6 +219,11 @@ // get the filename and then set the text NSString *filename = [[stack objectAtIndex:selection] valueForKey:@"filename"]; filename = [[NSURL URLWithString:filename] path]; + if ([filename isEqualToString:@""]) + { + return; + } + [sourceViewer setFile:filename]; int line = [[[stack objectAtIndex:selection] valueForKey:@"lineno"] intValue]; -- 2.22.5