[jira] [Created] (SANDBOX-357) in CSVPrinter a null check is missing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (SANDBOX-357) in CSVPrinter a null check is missing

ASF GitHub Bot (Jira)
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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (SANDBOX-357) in CSVPrinter a null check is missing

ASF GitHub Bot (Jira)

     [ 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