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

Jean-Noël Rouvignac
06.14.2016 5e0a551935151242e4308053617c2f487a60d5f0
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -3287,10 +3287,10 @@
      SearchResultEntry resultEntry = result.get(0);
      if (resultEntry != null)
      {
        List<Attribute> attrs = resultEntry.getAllAttributes(REPLICATION_GENERATION_ID);
        if (!attrs.isEmpty())
        Iterator<Attribute> attrs = resultEntry.getAllAttributes(REPLICATION_GENERATION_ID).iterator();
        if (attrs.hasNext())
        {
          Attribute attr = attrs.get(0);
          Attribute attr = attrs.next();
          if (attr.size()>1)
          {
            String errorMsg = "#Values=" + attr.size() + " Must be exactly 1 in entry " + resultEntry.toLDIFString();