diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java index 01974da..ac82386 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java @@ -1172,6 +1172,10 @@ class ConnectionManager { // convert the row result into the HRegionLocation we need! location = MetaReader.getRegionLocations(regionInfoRow); + if (location == null || location.getRegionLocation() == null) { + throw new IOException("HRegionInfo was null in " + + parentTable + ", row=" + regionInfoRow); + } HRegionInfo regionInfo = location.getRegionLocation().getRegionInfo(); if (regionInfo == null) { throw new IOException("HRegionInfo was null or empty in " +