Amend HBASE-14512 Cache UGI groups Handle the case where tests might create a call with a null connection
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d5f8300c Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d5f8300c Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d5f8300c Branch: refs/heads/0.98 Commit: d5f8300c082a75ce8edbbe08b66f077e7d663a4a Parents: 8189b0f Author: Andrew Purtell <[email protected]> Authored: Fri Jan 15 18:42:29 2016 -0800 Committer: Andrew Purtell <[email protected]> Committed: Fri Jan 15 18:42:32 2016 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/d5f8300c/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java index 458a6b2..a9f5bf4 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java @@ -337,7 +337,7 @@ public class RpcServer implements RpcServerInterface { this.isError = false; this.size = size; this.tinfo = tinfo; - this.user = connection.user; + this.user = connection == null ? null : connection.user; this.remoteAddress = remoteAddress; }
