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

Jean-Noël Rouvignac
14.05.2015 4f6891a8bd4d017a41b5f75748398ff59787501c
opendj-server-legacy/src/main/java/org/opends/server/plugins/ReferentialIntegrityPlugin.java
@@ -222,13 +222,10 @@
      String attr = attrFilt.substring(0, sepInd);
      String filtStr = attrFilt.substring(sepInd + 1);
      AttributeType attrType =
        DirectoryServer.getAttributeType(attr.toLowerCase());
      AttributeType attrType = DirectoryServer.getAttributeTypeOrNull(attr.toLowerCase());
      try
      {
        SearchFilter filter =
          SearchFilter.createFilterFromString(filtStr);
        SearchFilter filter = SearchFilter.createFilterFromString(filtStr);
        newAttrFiltMap.put(attrType, filter);
      }
      catch (DirectoryException de)
@@ -348,9 +345,7 @@
       * type has to be present in the attributeType list.
       */
      AttributeType attrType =
        DirectoryServer.getAttributeType(attr.toLowerCase());
      AttributeType attrType = DirectoryServer.getAttributeTypeOrNull(attr.toLowerCase());
      if (attrType == null || !theAttributeTypes.contains(attrType))
      {
        isAcceptable = false;