diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java index 52c73a8b388..44435a2c076 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java @@ -901,7 +901,9 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable restoreHandler.cancel(why); } try { - coordinator.close(); + if (coordinator != null) { + coordinator.close(); + } } catch (IOException e) { LOG.error("stop ProcedureCoordinator error", e); }