diff options
author | Greg Clayton <gclayton@apple.com> | 2012-05-16 20:49:19 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-05-16 20:49:19 +0000 |
commit | 563566c9dde05e4faf9a1b50aa50515bbab2fc7c (patch) | |
tree | 5d799bfa0286a6c80b708a91a9dd1cc96d0f8a96 /lldb/examples/python/crashlog.py | |
parent | 19a42f3b0f49736d02baf3f95af23bdc79246285 (diff) | |
download | llvm-563566c9dde05e4faf9a1b50aa50515bbab2fc7c.zip llvm-563566c9dde05e4faf9a1b50aa50515bbab2fc7c.tar.gz llvm-563566c9dde05e4faf9a1b50aa50515bbab2fc7c.tar.bz2 |
Fixed an exception when parsing crash logs.
llvm-svn: 156945
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 7d65353..3204428 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -421,7 +421,8 @@ class Interactive(cmd.Cmd): print image if matches_found == 0: for (image_idx, image) in enumerate(crash_log.images): - if string.find(image.get_resolved_path(), image_path) >= 0: + resolved_image_path = image.get_resolved_path() + if resolved_image_path and string.find(image.get_resolved_path(), image_path) >= 0: print image else: for crash_log in self.crash_logs: |