HBASE-4197 Added check of scanner against null

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1158084 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-08-16 01:41:49 +00:00
parent 4b1b49635a
commit 15fc346077
1 changed files with 1 additions and 2 deletions

View File

@ -452,8 +452,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
}
String scannerIdString = Long.toString(scannerId);
RegionScanner scanner = scanners.get(scannerIdString);
HRegionInfo regionName = scanner.getRegionInfo();
if (regionName.isMetaRegion()) {
if (scanner != null && scanner.getRegionInfo().isMetaRegion()) {
// LOG.debug("High priority scanner request: " + scannerId);
return HIGH_QOS;
}