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

mrossign
25.36.2010 1b63490091cbf690bd1c04ad9d066693740bddbb
Fix ArrayIndexOutOfBoundsException when doing psearch.
1 files modified
12 ■■■■ changed files
sdk/src/org/opends/sdk/controls/PersistentSearchChangeType.java 12 ●●●● patch | view | raw | blame | history
sdk/src/org/opends/sdk/controls/PersistentSearchChangeType.java
@@ -17,16 +17,16 @@
  private static final PersistentSearchChangeType[] ELEMENTS = new PersistentSearchChangeType[4];
  public static final PersistentSearchChangeType ADD = register(1,
      "add");
      "add", 0);
  public static final PersistentSearchChangeType DELETE = register(2,
      "delete");
      "delete", 1);
  public static final PersistentSearchChangeType MODIFY = register(4,
      "modify");
      "modify", 2);
  public static final PersistentSearchChangeType MODIFY_DN = register(
      8, "modify DN");
      8, "modify DN", 3);
@@ -51,11 +51,11 @@
  private static PersistentSearchChangeType register(int intValue,
      String name)
      String name, int index)
  {
    PersistentSearchChangeType t = new PersistentSearchChangeType(
        intValue, name);
    ELEMENTS[intValue] = t;
    ELEMENTS[index] = t;
    return t;
  }