Skip to content

Commit

Permalink
Fixes #1055
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Aug 28, 2019
1 parent 9ea71ce commit d5e4dbe
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 d5e4dbe

Please sign in to comment.