| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| // Validate piped InputObject | ||
| if (_inputObject.BaseObject is ScriptBlock) | ||
| if (_inputObject != null && | ||
| _inputObject.BaseObject is ScriptBlock) |
There was a problem hiding this comment.
The error message for null does not look correct.
Sorry, something went wrong.
There was a problem hiding this comment.
A null input object is valid, so there is no error for that. This check just prevents a null dereference when checking the input type.
Sorry, something went wrong.
|
Hello Dongbo Wang (@daxian-dbw)! Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass. Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 24 hours, a condition that will be fulfilled in about 30 minutes. No worries though, I will be back when the time is right! 😉 p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here. |
Sorry, something went wrong.
|
🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Fixes a null reference exception in the ForEach-Object -Parallel experimental feature.
PR Context
Piped input can be null, but a type check in parallel processing was not accounting for it. The result was a null reference exception.
Fix is to add a null check.
PR Checklist