You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zhihong Yu (Commented) (JIRA)" <ji...@apache.org> on 2012/04/10 19:01:13 UTC

[jira] [Commented] (HBASE-5759) HBaseClient throws NullPointerException when EOFException should be used.

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

Zhihong Yu commented on HBASE-5759:
-----------------------------------

Patch makes sense.
                
> HBaseClient throws NullPointerException when EOFException should be used.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-5759
>                 URL: https://issues.apache.org/jira/browse/HBASE-5759
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>            Priority: Trivial
>         Attachments: hbase-5759.patch
>
>
> When a RPC data input stream is closed, protobuf doesn't raise an EOFException, it returns a null RpcResponse object.
> We need to check if the response is null before trying to access it.

--
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