U4-4928 - issue with missing media content properties

This commit is contained in:
Stephan
2014-05-26 18:07:20 +02:00
parent 95b9a46b88
commit d631039c0d

View File

@@ -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();