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

FTP.getReplyStrings() returns array of null Strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.2
    • None
    • None
    • Win XP, JRE 1.5

    Description

      The 2.0 implementation of FTP.getReplyStrings() returns an array of null Strings instead of the actual reply text. Here is the current method:

      String[] lines;
      lines = new String[_replyLines.size()];
      _replyLines.addAll(Arrays.asList(lines));
      return lines;

      I believe the correction is to replace the above code with something like:

      return _replyLines.toArray(new String[0]);

      Attachments

        Activity

          People

            Unassigned Unassigned
            robwunderlich Rob Wunderlich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: