[
https://issues.apache.org/jira/browse/HBASE-9032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721942#comment-13721942
]
Jean-Marc Spaggiari commented on HBASE-9032:
--------------------------------------------
Nice to have a test! Thanks [~adityakishore]. However, I will have prefered to
user Assert.assertNotNull(r1.getBytes()); instead of "Result r2 = new
Result(r1.getBytes());". Because the only exception you are looking for is the
NPE, if any other exception occurs you will still mark this test as failed.
> Result.getBytes() returns null if backed by KeyValue array
> ----------------------------------------------------------
>
> Key: HBASE-9032
> URL: https://issues.apache.org/jira/browse/HBASE-9032
> Project: HBase
> Issue Type: Bug
> Components: Client
> Affects Versions: 0.94.9
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.94.11
>
> Attachments: HBASE-9032.patch, HBASE-9032.patch, HBASE-9032.patch
>
>
> This applies only to 0.94 (and earlier) branch.
> If the Result object was constructed using either of Result(KeyValue[]) or
> Result(List<KeyValue>), calling Result.getBytes() returns null instead of the
> serialized ImmutableBytesWritable object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira