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 f8f9875fc63..cc588fb1757 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 @@ -338,7 +338,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; }