Fix possible NPE in assign

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1042885 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-12-07 01:18:00 +00:00
parent d547429a14
commit ea3c445e2d
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ public class AssignmentManager extends ZooKeeperListener {
synchronized (this.regionPlans) {
existingPlan = this.regionPlans.get(encodedName);
if (existingPlan == null || forceNewPlan ||
existingPlan.getDestination().equals(serverToExclude)) {
(existingPlan != null && existingPlan.getDestination().equals(serverToExclude))) {
newPlan = true;
this.regionPlans.put(encodedName, randomPlan);
}