HBASE-9554 TestOfflineMetaRebuildOverlap#testMetaRebuildOverlapFail fails due to NPE

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1523870 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-09-17 02:13:58 +00:00
parent 80ab9fe15c
commit 8fd9db6d6c
1 changed files with 1 additions and 1 deletions

View File

@ -2298,7 +2298,7 @@ public class AssignmentManager extends ZooKeeperListener {
// Region is not in transition.
// We can unassign it only if it's not SPLIT/MERGED.
state = regionStates.getRegionState(encodedName);
if (state.isMerged() || state.isSplit()) {
if (state != null && (state.isMerged() || state.isSplit())) {
LOG.info("Attempting to unassign " + state + ", ignored");
return;
}