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

Chia-Ping Tsai commented on HBASE-18921:
----------------------------------------

We don't have defined what should happen if the {{Result}} has no more 
elements. I prefer throwing the {{NoSuchElementException}} rather than {{null}} 
or other exceptions. That will be more readable.

> Result.current() throws ArrayIndexOutOfBoundsException after calling advance()
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-18921
>                 URL: https://issues.apache.org/jira/browse/HBASE-18921
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Maytee Chinavanichkit
>            Priority: Minor
>         Attachments: master.patch
>
>
> On a Result object, if current() method is called after advance() returns 
> false, this throws an ArrayIndexOutOfBoundsException. The expectation here is 
> that it should return a null value. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to