[
https://issues.apache.org/jira/browse/NET-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rory Winston closed NET-257.
----------------------------
Resolution: Fixed
Fix Version/s: 2.1
Thanks Rob. Doesnt look like this would have every worked correctly. Fixed in
svn.
> 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
> Fix For: 2.1
>
>
> 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.