YARN-9815 ReservationACLsTestBase fails with NPE. Contributed by Ahmed Hussein

This commit is contained in:
Eric Badger 2019-09-11 21:59:28 +00:00
parent 64ed6b177d
commit 56b7571131
1 changed files with 1 additions and 1 deletions

View File

@ -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.