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:
parent
d547429a14
commit
ea3c445e2d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue