PS Studio 2018 Unhandled Exception

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
AdminMEG
Posts: 2
Last visit: Thu Jul 02, 2020 6:57 am

PS Studio 2018 Unhandled Exception

Post by AdminMEG »

Unhandled Exception: Object reference not set to an instance of an object.

Product, version and build: Powershell Studio 2018, Version 5.5.148.0
32 or 64 bit version of product: 32 bit
Operating system: Windows 7 SP1
32 or 64 bit OS: 32 bit
OS/App Language: German

I get an Error while Editing script: Unhandled Exception: Object reference not set to an instance of an object.
No "ForEach" Loops or other loops present.

I got that error in other scripts too. Seems to me it pops up when loading the tooltip for lines with variables that were initialized with $null

Code: Select all

[CmdletBinding()]
Param (
	$Server = $null,
	$FilePath = $null
)

openfiles /Query /S $Server /FO CSV /V | ConvertFrom-Csv |
where { $_."Open File (Pfad\ausführbare Datei)" -like "*$FilePath*" -and $_."Öffnungsmodus" -like "Schreiben + Lesen" } |
select "Zugriff durch", "Open File (Pfad\ausführbare Datei)" |
Sort "Open File (Pfad\ausführbare Datei)" | 
Out-GridView -wait
Errorlog
_Unhandled Exception.jpg
_Unhandled Exception.jpg (63.68 KiB) Viewed 1392 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PS Studio 2018 Unhandled Exception

Post by davidc »

I'm unable to reproduce this with the upcoming service build. Just in case, can you list the exact steps to reproduce this?

Please note if you ran the script in the debugger beforehand or not.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PS Studio 2018 Unhandled Exception

Post by davidc »

We just released the service build (v5.5.149). Please try updating and let us know if the issue persists.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.