Skip to content

Commit 14ebe71

Browse files
The link can be null / undefined, which is fine and no reason to to blow up
1 parent d973b16 commit 14ebe71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public string GetValue(Property property, ICollection<ArtifactDependency> depend
5050
foreach (var internalLink in relatedLinks.Where(x => x.IsInternal))
5151
{
5252
//As the page was picked we need to add it to collection of depenencies for this deployment
53-
dependencies.Add(new ArtifactDependency(internalLink.Link, false, ArtifactDependencyMode.Exist));
53+
if (internalLink.Link != null)
54+
dependencies.Add(new ArtifactDependency(internalLink.Link, false, ArtifactDependencyMode.Exist));
5455
}
5556

5657
//As this property editor already stores UDIs and not ints

0 commit comments

Comments
 (0)