Skip to content

Commit

Permalink
Merge pull request #1056 from ironmansoftware/1055
Browse files Browse the repository at this point in the history
Fixes #1055
  • Loading branch information
adamdriscoll authored Aug 28, 2019
2 parents 9ea71ce + d5e4dbe commit cfc270b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class NewInputFieldCommand : PSCmdlet
private readonly Logger Log = LogManager.GetLogger(nameof(NewInputFieldCommand));
protected override void EndProcessing()
{
if (Type == "select" && (null == DefaultValue || DefaultValue.ToString() == "") && Values.Count() >= 0)
if (Type == "select" && (null == DefaultValue || DefaultValue.ToString() == "") && (null != Values && Values.Count() >= 0))
{
DefaultValue = Values[0];
}
Expand Down
32 changes: 16 additions & 16 deletions src/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfc270b

Please sign in to comment.