From d631039c0dcdfcf3e9f4fa71c7ef43dcd578ca83 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 26 May 2014 18:07:20 +0200 Subject: [PATCH] U4-4928 - issue with missing media content properties --- src/Umbraco.Web/Models/PublishedContentBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Models/PublishedContentBase.cs b/src/Umbraco.Web/Models/PublishedContentBase.cs index e59c2981cb..9eab1a9dc6 100644 --- a/src/Umbraco.Web/Models/PublishedContentBase.cs +++ b/src/Umbraco.Web/Models/PublishedContentBase.cs @@ -47,7 +47,7 @@ namespace Umbraco.Web.Models var prop = GetProperty(Constants.Conventions.Media.File); if (prop == null) throw new NotSupportedException("Cannot resolve a Url for a media item when there is no 'umbracoFile' property defined."); - _url = prop.Value.ToString(); + _url = prop.Value == null ? "" : prop.Value.ToString(); break; default: throw new NotSupportedException();