small update to abstractdataeditor

This commit is contained in:
starfighter83
2010-12-21 11:49:06 -01:00
parent 6a92a2f321
commit 5105a2c9ef

View File

@@ -96,7 +96,7 @@ namespace umbraco.cms.businesslogic.datatype
var attr = this.Control.GetType().GetCustomAttributes(typeof(ValidationPropertyAttribute), true);
if (attr.Length > 0)
if (attr != null && attr.Length > 0)
{
//get value of marked property
System.Reflection.PropertyInfo info = this.Control.GetType().GetProperty(((ValidationPropertyAttribute)attr[0]).Name);