Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-300

FTPClient.listFiles() throws NullPointerException if listHiddenFiles is TRUE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      When listHiddenFiles is TRUE FTPClient.getListArguments() code determines the length of pathname parameter to create the appropriate StringBuffer (FtpClient.java:2319).
      Still pathname may merely be null if I call FTPClient.listFiles() - the one without params

        Attachments

        1. NET-300.patch
          0.8 kB
          Kirill Safonov

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ksafonov Kirill Safonov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: