Fixes rte property validation null refs

This commit is contained in:
perploug
2013-09-23 13:32:18 +02:00
parent 6ab4d177e4
commit b9d066b262

View File

@@ -49,8 +49,10 @@ namespace Umbraco.Web.PropertyEditors
/// <returns></returns>
public override object FormatDataForPersistence(Core.Models.Editors.ContentPropertyData editorValue, object currentValue)
{
var parsed = MacroTagParser.FormatRichTextContentForPersistence(editorValue.Value.ToString());
if (editorValue.Value == null)
return null;
var parsed = MacroTagParser.FormatRichTextContentForPersistence(editorValue.Value.ToString());
return parsed;
}
}