Fix a potential issue where data formatters can get confused over malformed UUIDs
llvm-svn: 164151
diff --git a/lldb/examples/summaries/cocoa/objc_runtime.py b/lldb/examples/summaries/cocoa/objc_runtime.py
index 996a6fd..6289e0e 100644
--- a/lldb/examples/summaries/cocoa/objc_runtime.py
+++ b/lldb/examples/summaries/cocoa/objc_runtime.py
@@ -75,7 +75,10 @@
logger = lldb.formatters.Logger.Logger()
# assume the only thing that has a Foundation.framework is a Mac
# assume anything < Lion does not even exist
- mod = target.module['Foundation']
+ try:
+ mod = target.module['Foundation']
+ except:
+ mod = None
if mod is None or mod.IsValid() == 0:
return None
ver = mod.GetVersion()