Fix null errors in JsonArrayValidator

This commit is contained in:
yutopp
2019-01-09 23:02:08 +09:00
parent 32f966ed8c
commit 579d5331f5

View File

@@ -163,6 +163,11 @@ namespace UniJSON
return new JsonSchemaValidationException(context, "minItems");
}
if (Items == null)
{
return null; // There are no json schema for items, success
}
var v = Items.Validator;
var t = o.GetType();
IEnumerable iter = null;