[ https://issues.apache.org/jira/browse/CASSANDRA-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13935174#comment-13935174 ]
Alex Liu commented on CASSANDRA-6461: ------------------------------------- It's fixed in 2.0.6 > 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)