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

FTP.getReplyStrings() returns array of null Strings

    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
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: