Skip to content
Permalink
Browse files
8263509: LdapSchemaParser.readNextTag checks array length incorrectly
Reviewed-by: stuefe, aefimov
  • Loading branch information
shipilev committed Mar 16, 2021
1 parent 9c50b8e commit 83a9a0296e5a0c052b66887ad335a929dde1d7ab
Showing 1 changed file with 1 addition and 1 deletion.
@@ -376,7 +376,7 @@ final private static Attribute readNextTag(String string, int[] pos)
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 + "\"");

0 comments on commit 83a9a02

Please sign in to comment.