Object reference not set to an instance of an object.

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 1 year and 4 days 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
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Object reference not set to an instance of an object.

Post by trevor530 »

Product: PowerShell Studio 2023 (64 Bit)
Build: v5.8.219
OS: Windows 11 Enterprise (64 Bit)
Build:

I have been getting random "Object reference not set to an instance of an object." when running my code. Occasionally I will get this error when I load my projects and I will get an error dump. If I get that again I will attach it.

My colleague is on a slightly older version and he does not get these errors.

When I get the errors I just close Powershell Studio, start it back up, load the project and continue on from where I was.

I also noticed that when I get these errors sometimes it is a result of me trying to load files in the project. The file list will have most of my project files with question marks next to them yet I can still open them. But, sometimes I can build and run the project.
User avatar
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Re: Object reference not set to an instance of an object.

Post by trevor530 »

[2023.04.04 - 14:51:18] Unhandled Exception:
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..()
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
User avatar
brittneyr
Site Admin
Posts: 1672
Last visit: Wed Apr 17, 2024 1:24 pm
Answers: 39
Been upvoted: 31 times

Re: Object reference not set to an instance of an object.

Post by brittneyr »

We are looking into this and we get back to you soon.

Just to clarify, the error happens when you are opening files from the project panel? Can you provide a screenshot of the files with question marks?
Brittney
SAPIEN Technologies, Inc.
User avatar
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Re: Object reference not set to an instance of an object.

Post by trevor530 »

That error occurs when I am opening from the panel sometimes. Other times it is when I am running code. Other times it is when I am debugging code.

I will post a screenshot if I can get the panel to show the question marks again.
User avatar
brittneyr
Site Admin
Posts: 1672
Last visit: Wed Apr 17, 2024 1:24 pm
Answers: 39
Been upvoted: 31 times

Re: Object reference not set to an instance of an object.

Post by brittneyr »

Can you please upload your entire Errorlog.txt file from here:
C:\Users\[User]\AppData\Roaming\SAPIEN\PowerShell Studio

You can upload it here:
https://www.sapien.com/support/upload

Are your projects local or on a network?

Was this happening prior to this build for you?
Brittney
SAPIEN Technologies, Inc.
User avatar
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Re: Object reference not set to an instance of an object.

Post by trevor530 »

I have uploaded my ErrorLog.

My code is on a network share. This problem was not present in previous builds.
User avatar
brittneyr
Site Admin
Posts: 1672
Last visit: Wed Apr 17, 2024 1:24 pm
Answers: 39
Been upvoted: 31 times

Re: Object reference not set to an instance of an object.

Post by brittneyr »

Please try service build 5.8.220 and let me know if you are still experiencing issues.
Brittney
SAPIEN Technologies, Inc.
User avatar
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Re: Object reference not set to an instance of an object.

Post by trevor530 »

The problem persists

[2023.04.07 - 10:21:10] Unhandled Exception:
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..(Object , MouseEventArgs )
at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
at DevExpress.XtraEditors.Container.EditorContainer.OnDoubleClick(EventArgs e)
at DevExpress.XtraTreeList.TreeList.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
User avatar
brittneyr
Site Admin
Posts: 1672
Last visit: Wed Apr 17, 2024 1:24 pm
Answers: 39
Been upvoted: 31 times

Re: Object reference not set to an instance of an object.

Post by brittneyr »

What were you doing when you received this error?
Brittney
SAPIEN Technologies, Inc.
User avatar
trevor530
Posts: 25
Last visit: Mon Feb 12, 2024 9:27 am

Re: Object reference not set to an instance of an object.

Post by trevor530 »

Screenshot 2023-04-07 102604.png
Screenshot 2023-04-07 102604.png (16.57 KiB) Viewed 2074 times
This topic is 1 year and 4 days 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.