This is an automated email from the ASF dual-hosted git repository. pboado pushed a commit to branch 4.x-cdh5.16 in repository https://gitbox.apache.org/repos/asf/phoenix.git
commit 9c7ee727aacce0b5d428160ed167345f8febf369 Author: Monani Mihir <monani.mi...@gmail.com> AuthorDate: Fri Dec 14 10:50:17 2018 +0000 PHOENIX-5070 NPE when upgrading Phoenix 4.13.0 to Phoenix 4.14.1 with hbase-1.x branch in secure setup --- .../java/org/apache/phoenix/coprocessor/PhoenixAccessController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java index 62c158c..ef26d2c 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java @@ -406,7 +406,7 @@ public class PhoenixAccessController extends BaseMetaDataEndpointObserver { final List<UserPermission> userPermissions = new ArrayList<UserPermission>(); try (Connection connection = ConnectionFactory.createConnection(env.getConfiguration())) { // Merge permissions from all accessController coprocessors loaded in memory - for (BaseMasterAndRegionObserver service : accessControllers) { + for (BaseMasterAndRegionObserver service : getAccessControllers()) { // Use AccessControlClient API's if the accessController is an instance of org.apache.hadoop.hbase.security.access.AccessController if (service.getClass().getName().equals(org.apache.hadoop.hbase.security.access.AccessController.class.getName())) { userPermissions.addAll(AccessControlClient.getUserPermissions(connection, tableName.getNameAsString()));