HBASE-11500 Possible null pointer dereference of regionLocation in ReversedScannerCallable. (Mike Drob)

This commit is contained in:
anoopsjohn 2014-07-12 18:17:17 +05:30
parent dba294576e
commit 5a408af65f
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public class ReversedScannerCallable extends ScannerCallable {
} else {
throw new DoNotRetryIOException("Does hbase:meta exist hole? Locating row "
+ Bytes.toStringBinary(currentKey) + " returns incorrect region "
+ regionLocation.getRegionInfo());
+ (regionLocation == null ? null : regionLocation.getRegionInfo()));
}
currentKey = regionLocation.getRegionInfo().getEndKey();
} while (!Bytes.equals(currentKey, HConstants.EMPTY_END_ROW)