From 3836967e051f9ff54c6fca006b7bf3e1555a201b Mon Sep 17 00:00:00 2001 From: jingyuntian Date: Tue, 30 Oct 2018 16:35:39 +0800 Subject: [PATCH] HBASE-21407 Resolve NPE in backup Master UI Signed-off-by: Michael Stack --- .../src/main/resources/hbase-webapps/master/header.jsp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/resources/hbase-webapps/master/header.jsp b/hbase-server/src/main/resources/hbase-webapps/master/header.jsp index d187eb54f35..0df70998d11 100644 --- a/hbase-server/src/main/resources/hbase-webapps/master/header.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/master/header.jsp @@ -18,7 +18,11 @@ */ --%> <%@ page contentType="text/html;charset=UTF-8" - import="org.apache.hadoop.hbase.HBaseConfiguration" + import="org.apache.hadoop.hbase.master.HMaster" + import="org.apache.hadoop.hbase.HBaseConfiguration" +%> +<% + HMaster master = (HMaster) getServletContext().getAttribute(HMaster.MASTER); %> @@ -52,7 +56,9 @@