Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 176d3d4

Browse files
committed
Allow null S3 grantee ID
Minio does not return a grantee so reversing the comparison avoids a NullPointerException.
1 parent 0b2420d commit 176d3d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apis/s3/src/main/java/org/jclouds/s3/domain/AccessControlList.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ public boolean hasPermission(URI granteeURI, String permission) {
209209
*/
210210
protected Collection<Grant> findGrantsForGrantee(final String granteeId) {
211211
return Collections2.filter(grants, new Predicate<Grant>() {
212+
@Override
212213
public boolean apply(Grant g) {
213-
return g.getGrantee().getIdentifier().equals(granteeId);
214+
return granteeId.equals(g.getGrantee().getIdentifier());
214215
}
215216
});
216217
}

0 commit comments

Comments
 (0)