We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d4486d + ecfad83 commit dc740c0Copy full SHA for dc740c0
src/PowerShellEditorServices/Debugging/VariableDetails.cs
@@ -113,6 +113,18 @@ public override VariableDetailsBase[] GetChildren()
113
114
private static bool GetIsExpandable(object valueObject)
115
{
116
+ if (valueObject == null)
117
+ {
118
+ return false;
119
+ }
120
+
121
+ // If a PSObject, unwrap it
122
+ var psobject = valueObject as PSObject;
123
+ if (psobject != null)
124
125
+ valueObject = psobject.BaseObject;
126
127
128
Type valueType =
129
valueObject != null ?
130
valueObject.GetType() :
0 commit comments