Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-38

in CSVPrinter a null check is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.0
    • Printer
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              odelya Odelya
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: