Fixes U4-1784

This commit is contained in:
Morten Christensen
2013-02-26 14:11:24 -01:00
parent b409740da5
commit bb2f3a1732
2 changed files with 7 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ namespace Umbraco.Web.Strategies.DataTypes
if (uploadFieldConfigNode != null)
{
var fileSystem = FileSystemProviderManager.Current.GetFileSystemProvider<MediaFileSystem>();
//Ensure that the Property has a Value before continuing
if(property.Value == null)
return;
var path = fileSystem.GetRelativePath(property.Value.ToString());
if (string.IsNullOrWhiteSpace(path) == false && fileSystem.FileExists(path))

View File

@@ -123,6 +123,9 @@ namespace umbraco.cms.businesslogic.datatype
private void ClearRelatedValues()
{
if(PropertyId == default(int))
return;
string propertyTypeAlias = new Property(PropertyId).PropertyType.Alias;
if (UmbracoSettings.ImageAutoFillImageProperties != null)
{