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

Ludovic Poitou
12.34.2011 3539e1f2ea3d3aa60e70da678cd66da6e5824795
Fix OPENDJ-384: Substring search on entryUUID fails with a NullPointerException
attributes may return null for substring syntaxes. That wasn't checked in the "optimization path" for initial substrings.
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/AttributeIndex.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/AttributeIndex.java
@@ -1289,7 +1289,7 @@
      if (filter.getSubInitialElement() != null)
      {
        // Use the equality index for initial substrings if possible.
        if (equalityIndex != null)
        if ((equalityIndex != null) && (matchRule != null))
        {
          ByteString normValue =
               matchRule.normalizeSubstring(filter.getSubInitialElement());