|
@@ -380,7 +380,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl {
|
|
synchronized (aces) {
|
|
synchronized (aces) {
|
|
int offset = findAceOffset(aceId);
|
|
int offset = findAceOffset(aceId);
|
|
|
|
|
|
- if (offset == 1) {
|
|
|
|
|
|
+ if (offset == -1) {
|
|
throw new NotFoundException("Requested ACE ID not found");
|
|
throw new NotFoundException("Requested ACE ID not found");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -395,7 +395,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl {
|
|
synchronized (aces) {
|
|
synchronized (aces) {
|
|
int offset = findAceOffset(aceId);
|
|
int offset = findAceOffset(aceId);
|
|
|
|
|
|
- if (offset == 1) {
|
|
|
|
|
|
+ if (offset == -1) {
|
|
throw new NotFoundException("Requested ACE ID not found");
|
|
throw new NotFoundException("Requested ACE ID not found");
|
|
}
|
|
}
|
|
|
|
|