U4-377: Fix exception when attempting to access Value externally during a new dictionary item creation

This commit is contained in:
Tom Fulton
2012-10-25 14:47:29 +04:00
parent 25da44825e
commit 22f7d8797c

View File

@@ -304,7 +304,12 @@ namespace umbraco.cms.businesslogic
public string Value()
{
return Item.Text(UniqueId, 1);
if (Item.hasText(UniqueId, 1))
{
return Item.Text(UniqueId, 1);
}
return string.Empty;
}
/// <summary>