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 76bce77326
commit 2d2fdd5a9f
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,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;