HBASE-15114 NPE when IPC server ByteBuffer reservoir is turned off

This commit is contained in:
Enis Soztutar 2016-01-15 16:42:35 -08:00
parent 546adefcd6
commit 795f91439c

View File

@ -348,7 +348,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
* cleanup.
*/
void done() {
if (this.cellBlock != null) {
if (this.cellBlock != null && reservoir != null) {
// Return buffer to reservoir now we are done with it.
reservoir.putBuffer(this.cellBlock);
this.cellBlock = null;