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
This commit is contained in:
Michael Stack 2013-04-04 03:53:34 +00:00
parent e7bebd4706
commit c4911d3230
1 changed files with 3 additions and 1 deletions

View File

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