diff --git a/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp b/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp index 8183c69bcb5..382783ea4ba 100644 --- a/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp @@ -32,8 +32,13 @@ HRegionServer rs = (HRegionServer) getServletContext().getAttribute(HRegionServer.REGIONSERVER); Region region = rs.getRegion(regionName); - String displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(), - rs.getConfiguration()); + String displayName; + if (region != null) { + displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(), + rs.getConfiguration()); + } else { + displayName = "region {" + regionName + "} is not currently online on this region server"; + } pageContext.setAttribute("pageTitle", "HBase RegionServer: " + rs.getServerName()); %>