Fixes a bug where the ValueSetValidator is null which will cause a NullReferenceException.
Fixes a bug where the ValueSetValidator is null which will cause a NullReferenceException.
This commit is contained in:
committed by
Matthew-Wise
parent
41dddee620
commit
f9a6712403
@@ -70,9 +70,13 @@ public class UmbracoContentIndex : UmbracoExamineIndex, IUmbracoContentIndex
|
||||
return ValueSetValidationStatus.Failed;
|
||||
}
|
||||
|
||||
ValueSetValidationResult validationResult = ValueSetValidator.Validate(v);
|
||||
if (ValueSetValidator is not null)
|
||||
{
|
||||
ValueSetValidationResult validationResult = ValueSetValidator.Validate(v);
|
||||
return validationResult.Status;
|
||||
}
|
||||
|
||||
return validationResult.Status;
|
||||
return ValueSetValidationStatus.Valid;
|
||||
}).ToArray();
|
||||
|
||||
var hasDeletes = false;
|
||||
|
||||
Reference in New Issue
Block a user