We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b9a46 commit d631039Copy full SHA for d631039
src/Umbraco.Web/Models/PublishedContentBase.cs
@@ -47,7 +47,7 @@ public virtual string Url
47
var prop = GetProperty(Constants.Conventions.Media.File);
48
if (prop == null)
49
throw new NotSupportedException("Cannot resolve a Url for a media item when there is no 'umbracoFile' property defined.");
50
- _url = prop.Value.ToString();
+ _url = prop.Value == null ? "" : prop.Value.ToString();
51
break;
52
default:
53
throw new NotSupportedException();
0 commit comments