[ 
https://issues.apache.org/jira/browse/HBASE-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-1888:
-------------------------

    Attachment: 1888.txt

Small patch to do as Michal suggests (head of patch has some fix up of class 
javadoc).

> KeyValue methods throw NullPointerException instead of 
> IllegalArgumentException during parameter sanity check
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-1888
>                 URL: https://issues.apache.org/jira/browse/HBASE-1888
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Michal Podsiadlowski
>            Priority: Minor
>             Fix For: 0.92.0
>
>         Attachments: 1888.txt
>
>
> Methods of org.apache.hadoop.hbase.KeyValue
> public static int getDelimiter(final byte [] b, int offset, final int length, 
> final int delimiter)
> public static int getDelimiterInReverse(final byte [] b, final int offset, 
> final int length, final int delimiter)
> throw NullPointerException instead of IllegalArgumentException when byte 
> array b is check for null  - which is very bad practice!
> Please refactor this because this can be very misleading.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to