You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2014/08/14 22:08:20 UTC

[jira] [Closed] (CSV-38) in CSVPrinter a null check is missing

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

Benedikt Ritter closed CSV-38.
------------------------------


> in CSVPrinter a null check is missing
> -------------------------------------
>
>                 Key: CSV-38
>                 URL: https://issues.apache.org/jira/browse/CSV-38
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Printer
>            Reporter: Odelya
>             Fix For: 1.0
>
>
> In CSVPrinter, there is the print method:
> public void print(String value) {
>     boolean quote = false;
>     if (value.length() > 0) {
>       char c = value.charAt(0);
>       if (newLine
>         && (c < '0'
> you should do null check as well before the if (value.length)



--
This message was sent by Atlassian JIRA
(v6.2#6252)