[jira] [Resolved] (SANDBOX-209) NullPointerException in CSVPrinter.print()/println()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Resolved] (SANDBOX-209) NullPointerException in CSVPrinter.print()/println()

Gilles (Jira)

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

Emmanuel Bourg resolved SANDBOX-209.

    Resolution: Fixed

I changed CSVPrinter.print() to handle null values as empty strings. I also removed the print method in CSVUtils that was writing the "null" string on null values.

> NullPointerException in CSVPrinter.print()/println()
> ----------------------------------------------------
>                 Key: SANDBOX-209
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-209
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>    Affects Versions: Nightly Builds
>            Reporter: Andriy Sholokh
>             Fix For: CSV 1.0
> If
> public void print(String value) method of CSVPrinter class gets null parameter it throws NullPointerException.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira