Skip to content

Commit df398ac

Browse files
committed
Added null reference check for the nuPickers value
1 parent e0b33e0 commit df398ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Umbraco.Deploy.Contrib.Connectors/ValueConnectors/NuPickersValueConnector.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public string GetValue(Property property, ICollection<ArtifactDependency> depend
4747
// get the property value
4848
var value = property.Value as string;
4949

50+
if (string.IsNullOrWhiteSpace(value))
51+
return null;
52+
5053
// parse the value - checking the format - CSV, XML or JSON
5154
SaveFormat format;
5255
var items = ParseValue(value, out format);

0 commit comments

Comments
 (0)