commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANDBOX-357) in CSVPrinter a null check is missing
Date Mon, 05 Mar 2012 11:35:57 GMT

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

Emmanuel Bourg resolved SANDBOX-357.
------------------------------------

    Resolution: Duplicate
    
> in CSVPrinter a null check is missing
> -------------------------------------
>
>                 Key: SANDBOX-357
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-357
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>            Reporter: Odelya
>
> 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 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

        

Mime
View raw message