Amend HBASE-14512 Cache UGI groups

Handle the case where tests might create a call with a null connection
This commit is contained in:
Andrew Purtell 2016-01-15 18:42:29 -08:00
parent 79588240c6
commit 387eaff316
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}