mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
11.11.2007 ac8d7e6aae99a60ce8b71faa8fd210080f73d066
Fix #731 - Exception when testing NumericStringSubstringMatchingRule.valueMatchesSubstring()
1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/schema/NumericStringSubstringMatchingRule.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/schema/NumericStringSubstringMatchingRule.java
@@ -332,6 +332,12 @@
        int end = valueLength - anyLength;
        boolean match = false;
        if (anyLength == 0)
        {
          // empty element is not considered as unmatching
          match = true;
          continue;
        }
        for (; pos <= end; pos++)
        {
          if (anyBytes[0] == valueBytes[pos])