FTP.getReplyStrings() returns array of null Strings
---------------------------------------------------

                 Key: NET-257
                 URL: https://issues.apache.org/jira/browse/NET-257
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Win XP, JRE 1.5
            Reporter: Rob Wunderlich


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]);}}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to