Skip to content
Permalink
Browse files
Revert "fix 500/NPE of region.jsp (#1033)"
Missed the jira number on that commit message. Will re-apply it with the jira number.

This reverts commit d60ce17.
  • Loading branch information
wchevreuil committed Jan 15, 2020
1 parent fd05aab commit ceaeece2c5c1edf5719141fd4e1dc2129b21a77b
Showing 1 changed file with 2 additions and 7 deletions.
@@ -32,13 +32,8 @@
HRegionServer rs = (HRegionServer) getServletContext().getAttribute(HRegionServer.REGIONSERVER);
Region region = rs.getRegion(regionName);
String displayName;
if (region != null) {
displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
rs.getConfiguration());
} else {
displayName = "region {" + regionName + "} is not currently online on this region server";
}
String displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
rs.getConfiguration());
pageContext.setAttribute("pageTitle", "HBase RegionServer: " + rs.getServerName());
%>
<jsp:include page="header.jsp">

0 comments on commit ceaeece

Please sign in to comment.