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/387eaff3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/387eaff3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/387eaff3 Branch: refs/heads/master Commit: 387eaff316d32b9983ecfff74520f6cb0e9b7404 Parents: 7958824 Author: Andrew Purtell <[email protected]> Authored: Fri Jan 15 18:42:29 2016 -0800 Committer: Andrew Purtell <[email protected]> Committed: Fri Jan 15 19:27:18 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/387eaff3/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 bd3342b..313c431 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 @@ -339,7 +339,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver { this.isError = false; this.size = size; this.tinfo = tinfo; - this.user = connection.user; + this.user = connection == null ? null : connection.user; this.remoteAddress = remoteAddress; this.retryImmediatelySupported = connection.retryImmediatelySupported; }
