8000 Fix powershell to not crash on converting recursive array to bool by PetSerAl · Pull Request #3208 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Fix powershell to not crash on converting recursive array to bool #3208

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

Merged
merged 2 commits into from
Feb 27, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes #3207
  • Loading branch information
PetSerAl committed Feb 26, 2017
commit 448e6d8851e8e4e87a2d223e909572f4e5ca35fc
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ internal static bool IsTrue(IList objectArray)
// but since we don't want this to recurse indefinitely
// we explicitly check the case where it would recurse
// and deal with it.
IList firstElement = objectArray[0] as IList;
IList firstElement = PSObject.Base(objectArray[0]) as IList;

if (firstElement == null)
{
Expand Down
0