YARN-9815 ReservationACLsTestBase fails with NPE. Contributed by Ahmed Hussein
This commit is contained in:
parent
64ed6b177d
commit
56b7571131
|
@ -79,7 +79,7 @@ public class ReservationsACLsManager {
|
|||
if (this.reservationAcls.containsKey(queueName)) {
|
||||
Map<ReservationACL, AccessControlList> acls = this.reservationAcls.get(
|
||||
queueName);
|
||||
if (acls.containsKey(acl)) {
|
||||
if (acls != null && acls.containsKey(acl)) {
|
||||
return acls.get(acl).isUserAllowed(callerUGI);
|
||||
} else {
|
||||
// Give access if acl is undefined for queue.
|
||||
|
|
Loading…
Reference in New Issue