diff --git a/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index ea7213e9972..e2c6c93a7ba 100644 --- a/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -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; }