[ 
https://issues.apache.org/jira/browse/HBASE-5424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210417#comment-13210417
 ] 

stack commented on HBASE-5424:
------------------------------

Oh, if you are making a new patch, you might consider making it so if info is 
null, just immediately return.  Then you don't have to right-shift the whole 
body of the method (YOur patch will be smaller too).  Thanks.
                
> HTable meet NPE when call getRegionInfo()
> -----------------------------------------
>
>                 Key: HBASE-5424
>                 URL: https://issues.apache.org/jira/browse/HBASE-5424
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.1, 0.90.5
>            Reporter: junhua yang
>         Attachments: HBASE-5424.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> We meet NPE when call getRegionInfo() in testing environment.
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:75)
> at org.apache.hadoop.hbase.util.Writables.getHRegionInfo(Writables.java:119)
> at org.apache.hadoop.hbase.client.HTable$2.processRow(HTable.java:395)
> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:190)
> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:73)
> at org.apache.hadoop.hbase.client.HTable.getRegionsInfo(HTable.java:418)
> This NPE also make the table.jsp can't show the region information of this 
> table.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to