1
0
mirror of synced 2026-08-04 09:17:02 +00:00

SEC-532: small bug-fix

This commit is contained in:
Andrei Stefan
2008-02-15 10:39:25 +00:00
parent c65ec2aa38
commit 0eff5afc8f
@@ -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");
}