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

ludovicp
30.59.2010 66680d3613957ad09437fc8b64885a0ad87f9e53
opends/src/server/org/opends/server/core/AbsoluteSubtreeSpecification.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.core;
import org.opends.messages.Message;
@@ -278,13 +278,16 @@
  public boolean isWithinScope(Entry entry) {
    if (isDNWithinScope(entry.getDN())) {
      try {
        return filter.matchesEntry(entry);
      } catch (DirectoryException e) {
        // TODO: need to decide what to do with the exception here. It's
        // probably safe to ignore, but we could log it perhaps.
        return false;
      if (filter != null) {
        try {
          return filter.matchesEntry(entry);
        } catch (DirectoryException e) {
          // TODO: need to decide what to do with the exception here. It's
          // probably safe to ignore, but we could log it perhaps.
          return false;
        }
      }
      return true;
    } else {
      return false;
    }