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

Jean-Noel Rouvignac
26.29.2013 6e1a57e1c6e5450c0bc9320616416359a4e8a99a
opendj-sdk/opends/src/server/org/opends/server/replication/server/MessageHandler.java
@@ -414,16 +414,13 @@
  private void addCursorIfNotEmpty(Collection<ReplicaDBCursor> cursors,
      ReplicaDBCursor cursor)
  {
    if (cursor != null)
    if (cursor.getChange() != null)
    {
      if (cursor.getChange() != null)
      {
        cursors.add(cursor);
      }
      else
      {
        close(cursor);
      }
      cursors.add(cursor);
    }
    else
    {
      close(cursor);
    }
  }