Author: martin
Date: 2008-02-19 07:50:23 -0500 (Tue, 19 Feb 2008)
New Revision: 96131

Modified:
   branches/martin/debugger-terrania/debugger/frontend/Style.cs
   branches/martin/debugger-terrania/debugger/languages/mono/MonoClassType.cs
Log:
Small fix.

Modified: branches/martin/debugger-terrania/debugger/frontend/Style.cs
===================================================================
--- branches/martin/debugger-terrania/debugger/frontend/Style.cs        
2008-02-19 12:39:10 UTC (rev 96130)
+++ branches/martin/debugger-terrania/debugger/frontend/Style.cs        
2008-02-19 12:50:23 UTC (rev 96131)
@@ -413,7 +413,8 @@
 
                                TargetStructType parent = 
gtype.ContainerType.GetParentType (target);
                                sb.Append (String.Format ("{0}", 
gtype.ContainerType.Name));
-                               sb.Append (String.Format (" : {0}", 
parent.Name));
+                               if (parent != null)
+                                       sb.Append (String.Format (" : {0}", 
parent.Name));
 
                                sb.Append ("\n" + prefix + "{\n");
                                sb.Append (FormatStruct (prefix, 
gtype.ContainerType, hash));

Modified: 
branches/martin/debugger-terrania/debugger/languages/mono/MonoClassType.cs
===================================================================
--- branches/martin/debugger-terrania/debugger/languages/mono/MonoClassType.cs  
2008-02-19 12:39:10 UTC (rev 96130)
+++ branches/martin/debugger-terrania/debugger/languages/mono/MonoClassType.cs  
2008-02-19 12:50:23 UTC (rev 96131)
@@ -115,7 +115,7 @@
                                return parent_type.Type;
 
                        ResolveClass (target, true);
-                       return parent_type.Type;
+                       return parent_type != null ? parent_type.Type : null;
                }
 
                public override Module Module {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to