[
https://issues.apache.org/jira/browse/HBASE-17879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15968575#comment-15968575
]
Abhishek Kumar edited comment on HBASE-17879 at 4/14/17 4:04 AM:
-----------------------------------------------------------------
yeah, this did cross my mind but it will be completely unnecessary to create a
Admin object and then iterate through all valid snapshots only to know that
this 'null' can't be found, so i went with 'if condition' check, will generate
the patch based on the master branch and upload the same.
was (Author: a72877):
yeah, this did cross my mind but it will be completely unnecessary to create a
Admin object and then iterate through all valid snapshots only to know that
this can't be found, so i went with if condition check.
> Avoid NPE in snapshot.jsp when accessing without any request parameter
> ----------------------------------------------------------------------
>
> Key: HBASE-17879
> URL: https://issues.apache.org/jira/browse/HBASE-17879
> Project: HBase
> Issue Type: Bug
> Components: UI
> Affects Versions: 1.3.0
> Reporter: Abhishek Kumar
> Priority: Trivial
> Attachments: HBASE-17879.patch, HBASE-17879-V1.patch,
> NPE_screenshot.png, patched_screenshot.png
>
>
> When accessing snapshot jsp with below url inadvertently NPE comes in UI:
> Requested URL:
> http://<MasterHost>:<Port>/snapshot.jsp?
> Response:
> java.lang.NullPointerException
> at
> org.apache.hadoop.hbase.generated.master.snapshot_jsp._jspService(snapshot_jsp.java:66)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)