-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NullRefEx bug when accessing scriptFile.ReferencedFiles
This happens because the ScriptFile ctor does not initialize all its public props. I added initialization for the other public props except for the ScriptAst prop. I don't see an empty Ast. Perhaps null is OK for this prop? This address vscode-powershell bug PowerShell/vscode-powershell#1675 Also, for the 2.0.0 branch, we should see if we can use Array.Empty<>() for initialization. It isn't availble to net45x. :-(
- Loading branch information
1 parent
49cb3a3
commit d4076b8
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters