[
https://issues.apache.org/jira/browse/HBASE-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-1888.
--------------------------
Resolution: Fixed
Fix Version/s: 0.92.0
Assignee: stack
Committed to TRUNK.
> 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
> Assignee: stack
> 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.