Skip to content

Commit

Permalink
Merge pull request #7 from mgarcir/mgarcia/fixes-default-context-on-v…
Browse files Browse the repository at this point in the history
…alidateobjectattribute

Add default context on ValidateObjectAttribute when is Null
  • Loading branch information
pruiz committed May 24, 2016
2 parents f462627 + a23d42b commit a41a775
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HermaFx.DataAnnotations/ValidateObjectAttribute.cs
Expand Up @@ -83,6 +83,7 @@ private IEnumerable<ValidationResult> ValidateProperties(object value, Validatio

protected override ValidationResult IsValid(object value, ValidationContext context)
{
context = context ?? new ValidationContext(value);
var seen = TryGetSeenHashFrom(context);

//_Log.DebugFormat("Trying to validate {0}", value.ToString());
Expand Down

0 comments on commit a41a775

Please sign in to comment.