You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefania (JIRA)" <ji...@apache.org> on 2015/05/04 02:03:44 UTC

[jira] [Created] (CASSANDRA-9290) Fix possible NPE in Scrubber

Stefania created CASSANDRA-9290:
-----------------------------------

             Summary: 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.x, 2.1.x, 2.0.x


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)