File tree 1 file changed +4
-1
lines changed
src/PowerShellEditorServices/Debugging
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Microsoft . PowerShell . EditorServices
10
10
{
11
+ /// <summary>
12
+ /// An optional hint for how to present a stack frame in the UI.
13
+ /// </summary>
11
14
public enum StackFramePresentationHint
12
15
{
13
16
/// <summary>
@@ -117,7 +120,7 @@ static internal StackFrameDetails Create(
117
120
string moduleId = string . Empty ;
118
121
var presentationHint = StackFramePresentationHint . Normal ;
119
122
120
- var invocationInfo = callStackFrameObject . Properties [ "InvocationInfo" ] . Value as InvocationInfo ;
123
+ var invocationInfo = callStackFrameObject . Properties [ "InvocationInfo" ] ? . Value as InvocationInfo ;
121
124
string scriptPath = ( callStackFrameObject . Properties [ "ScriptName" ] . Value as string ) ?? NoFileScriptPath ;
122
125
int startLineNumber = ( int ) ( callStackFrameObject . Properties [ "ScriptLineNumber" ] . Value ?? 0 ) ;
123
126
You can’t perform that action at this time.
0 commit comments