From 0eff5afc8f27271baa6305a9f59a993d33603640 Mon Sep 17 00:00:00 2001 From: Andrei Stefan Date: Fri, 15 Feb 2008 10:39:25 +0000 Subject: [PATCH] SEC-532: small bug-fix --- .../org/springframework/security/acls/domain/AclImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/springframework/security/acls/domain/AclImpl.java b/core/src/main/java/org/springframework/security/acls/domain/AclImpl.java index 7a3807c501..450fc8d58d 100644 --- a/core/src/main/java/org/springframework/security/acls/domain/AclImpl.java +++ b/core/src/main/java/org/springframework/security/acls/domain/AclImpl.java @@ -380,7 +380,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { synchronized (aces) { int offset = findAceOffset(aceId); - if (offset == 1) { + if (offset == -1) { throw new NotFoundException("Requested ACE ID not found"); } @@ -395,7 +395,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { synchronized (aces) { int offset = findAceOffset(aceId); - if (offset == 1) { + if (offset == -1) { throw new NotFoundException("Requested ACE ID not found"); }