diff --git a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/TreeModel/ChildNodesOfObject.cs b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/TreeModel/ChildNodesOfObject.cs index 7e5ee2aae6..23e19074df 100644 --- a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/TreeModel/ChildNodesOfObject.cs +++ b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/TreeModel/ChildNodesOfObject.cs @@ -51,7 +51,11 @@ namespace Debugger.AddIn.TreeModel this.Image = DebuggerIcons.ImageList.Images[0]; // Class this.Name = StringParser.Parse("${res:MainWindow.Windows.Debug.LocalVariables.BaseClass}"); this.Type = shownType.FullName; - this.ChildNodes = Utils.GetChildNodesOfObject(targetObject, shownType); + if (shownType.FullName == "System.Object") { + this.ChildNodes = null; + } else { + this.ChildNodes = Utils.GetChildNodesOfObject(targetObject, shownType); + } } }