minor code cleanup and a null check.
This commit is contained in:
@@ -331,7 +331,7 @@ namespace Umbraco.Web.Models
|
||||
|
||||
var attempt = content.GetType().GetMemberIgnoreCase(content, alias);
|
||||
|
||||
return !attempt.Success
|
||||
return attempt.Success == false || attempt.Result == null
|
||||
? null
|
||||
: new PropertyResult(alias, attempt.Result, Guid.Empty, PropertyResultType.ReflectedProperty);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user