Skip to content

Commit

Permalink
Merge pull request #28 from bpalfaro/master
Browse files Browse the repository at this point in the history
PowerShell Activity - Error When Hashtable Has Null Values
  • Loading branch information
NileshGhodekar authored Feb 9, 2017
2 parents 060b6c5 + fe2312d commit bcc1663
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ private void Run_ExecuteCode(object sender, EventArgs e)
object value = results[s];

// Values may come as PSObject types. In that case, read the base object.
if (value.GetType() == typeof(PSObject))
if (value != null && value.GetType() == typeof(PSObject))
{
value = ((PSObject)results[s]).BaseObject;
}
Expand Down

0 comments on commit bcc1663

Please sign in to comment.