[ https://issues.apache.org/jira/browse/CASSANDRA-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934884#comment-13934884 ]
Sylvain Lebresne commented on CASSANDRA-6461: --------------------------------------------- You should check 2.0.6, pretty sure this was fixed by CASSANDRA-6526. > 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.2#6252)