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

Stefania commented on CASSANDRA-9290:
-------------------------------------

Thanks!

> Fix possible NPE in Scrubber
> ----------------------------
>
>                 Key: CASSANDRA-9290
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9290
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Stefania
>            Assignee: Stefania
>             Fix For: 3.0, 2.0.15, 2.1.6
>
>         Attachments: 9290-2.0.txt
>
>
> In scrubber there is a possible NullPointerException introduced by 
> CASSANDRA-9140, as discovered by the Coverity static analyzer (CID 109861):
> {code}
> throw new IOError(new IOException(String.format("Key from data file (%s) does 
> not match key from index file (%s)",
>         ByteBufferUtil.bytesToHex(key.getKey()), 
> ByteBufferUtil.bytesToHex(currentIndexKey))));
> {code}
> {{currentIndexKey}} may be null and {{bytesToHex}} expects non null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to