hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1576951 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java
Date Wed, 12 Mar 2014 22:11:13 GMT
Author: stack
Date: Wed Mar 12 22:11:13 2014
New Revision: 1576951

URL: http://svn.apache.org/r1576951
Log:
HBASE-9294 NPE in /rs-status during RS shutdown

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java?rev=1576951&r1=1576950&r2=1576951&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSStatusServlet.java
Wed Mar 12 22:11:13 2014
@@ -53,7 +53,7 @@ public class RSStatusServlet extends Htt
       tmpl.setFormat(req.getParameter("format"));
     if (req.getParameter("filter") != null)
       tmpl.setFilter(req.getParameter("filter"));
-    tmpl.render(resp.getWriter(), hrs);
+    if (hrs != null) tmpl.render(resp.getWriter(), hrs);
   }
 
 }



Mime
View raw message