edge-powershell icon indicating copy to clipboard operation
edge-powershell copied to clipboard

Object reference not set to an instance of an object

Open forensicsguy20012004 opened this issue 10 years ago • 4 comments

Hey Doug, Have you seen this error before?

../c/nodeprojects/node-edge-test1/edge-powershell/edge-powershell/samples/trypowershell $ node server.js C:\nodeprojects\node-edge-test1\edge-powershell\edge-powershell\lib Server listening on port 8080 { [System.NullReferenceException: Object reference not set to an instance of an object.] Message: 'Object reference not set to an instance of an object.', Data: {}, InnerException: null, TargetSite: {}, StackTrace: ' at Edge.PS.EdgePowerShell.GetScriptFromPayload(IDictionary`2 payload) in C:
\Users\hainem1\Desktop\edge-powershell\edge-powershell\src\Edge.PowerShell\Edge.PowerSh ell\EdgePowerShell.cs:line 58\r\n at Edge.PS.EdgePowerShell.d__0.MoveNext() i n C:\Users\hainem1\Desktop\edge-powershell\edge-powershell\src\Edge.PowerShell\Edge.Po werShell\EdgePowerShell.cs:line 18', HelpLink: null, Source: 'Edge.PowerShell', HResult: -2147467261, message: 'Object reference not set to an instance of an object.', name: 'System.NullReferenceException' }

forensicsguy20012004 avatar May 20 '16 12:05 forensicsguy20012004

No I haven't. Off the top of my head, I'm not sure what might be the issue.

dfinke avatar May 20 '16 12:05 dfinke

I will play around and see what I see on line 18. Thanks again Doug. If you want you can close this.

forensicsguy20012004 avatar May 20 '16 15:05 forensicsguy20012004

Thanks for looking into it.

Let's leave it open. If you find something, let me know.

Looks like a fun line =)

var script = payload == null ? GetScriptFromInput(input.ToString()) : GetScriptFromPayload(payload);

dfinke avatar May 20 '16 15:05 dfinke

I am still working on this Doug. For some reason it escapes me...it shouldn't but it does. I will keep hammering on it. So my thinking, I am using "node-cron" in my api and I wanted to incorporate the calling of Posh scripts. Either way, let me hammer away.....Matt

forensicsguy20012004 avatar May 21 '16 20:05 forensicsguy20012004