cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Pablo Mora (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6461) CQLSSTableWriter throws NPE on addRow(Map values)
Date Mon, 09 Dec 2013 12:26:07 GMT

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

Juan Pablo Mora updated CASSANDRA-6461:
---------------------------------------

    Attachment: 0001-Posible-solucion-al-CASSANDRA-6461.patch

> CQLSSTableWriter throws NPE on addRow(Map values)
> -------------------------------------------------
>
>                 Key: CASSANDRA-6461
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6461
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Juan Pablo Mora
>         Attachments: 0001-Posible-solucion-al-CASSANDRA-6461.patch
>
>
> On 2.0.3 version CQLSSTableWriter throws NPE on method addRow ( Map<String, Object>
values ) on line  159 :
> {code:java}
> rawValues.add(((AbstractType)spec.type).decompose(values.get(spec.name.toString())));
> {code}
> I think the solution is to copy the code of method   addRow(List<Object> values)
because it has a control over null values :
> {code:java}
> 133: rawValues.add(values.get(i) == null ? null :  (AbstractType)boundNames.get(i).type).decompose(values.get(i)));
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message