From c4911d3230749947f107f2188b4da1615bb1fab1 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 4 Apr 2013 03:53:34 +0000 Subject: [PATCH] HBASE-8230 Possible NPE on regionserver abort if replication service has not been started git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1464280 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/replication/regionserver/Replication.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java index e31228c995c..71aa2c76ea8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java @@ -154,7 +154,9 @@ public class Replication implements WALActionsListener, public void join() { if (this.replication) { this.replicationManager.join(); - this.replicationSink.stopReplicationSinkServices(); + if (this.replicationSink != null) { + this.replicationSink.stopReplicationSinkServices(); + } } }