diff --git a/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java b/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java index c478e9f26b9..dd2d6f637c0 100644 --- a/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java +++ b/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java @@ -220,11 +220,13 @@ public class ServerShutdownHandler extends EventHandler { " regions(s) that are already in transition)"); // Iterate regions that were on this server and assign them - for (Map.Entry e: hris.entrySet()) { - if (processDeadRegion(e.getKey(), e.getValue(), - this.services.getAssignmentManager(), - this.server.getCatalogTracker())) { - this.services.getAssignmentManager().assign(e.getKey(), true); + if (hris != null) { + for (Map.Entry e: hris.entrySet()) { + if (processDeadRegion(e.getKey(), e.getValue(), + this.services.getAssignmentManager(), + this.server.getCatalogTracker())) { + this.services.getAssignmentManager().assign(e.getKey(), true); + } } } this.deadServers.finish(serverName);