8263509: LdapSchemaParser.readNextTag checks array length incorrectly

Reviewed-by: stuefe, aefimov
This commit is contained in:
Aleksey Shipilev 2021-03-16 10:54:04 +00:00
parent 9c50b8e66a
commit 83a9a0296e

@ -376,7 +376,7 @@ final class LdapSchemaParser {
values = readTag(tagName, string, pos);
// make sure at least one value was returned
if(values.length < 0) {
if (values.length == 0) {
throw new InvalidAttributeValueException("no values for " +
"attribute \"" +
tagName + "\"");