Fixed an exception when parsing crash logs.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156945 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/crashlog.py b/examples/python/crashlog.py
index 7d65353..3204428 100755
--- a/examples/python/crashlog.py
+++ b/examples/python/crashlog.py
@@ -421,7 +421,8 @@
                                 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: