-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException when $profile doesn’t exist #1502
Comments
Explicit casts do not throw on null in C#. Are you sure that's where the exception you're seeing is coming from? |
AFAIK you're the only person to report this, and we'd be happy to accept a PR |
You are correct, it is actually on line 382.
I'm working on a merge request now. |
PowerShellEditorServices/src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs
Line 349 in f5006ae
Can we get a null check here to prevent profile loading if the $profile value is null?
The text was updated successfully, but these errors were encountered: