Browse Source

fix for bug 50217, NPE in ftp chmod

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1032188 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 14 years ago
parent
commit
ce81059049
4 changed files with 9 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 1
- 0
CONTRIBUTORS View File

@@ -269,6 +269,7 @@ Philip Hourihane
Phillip Wells
Pierre Delisle
Pierre Dittgen
riasol
R Handerson
Rami Ojares
Randy Watler


+ 3
- 0
WHATSNEW View File

@@ -192,6 +192,9 @@ Fixed bugs:
provided using non-fileset resource collections.
Bugzilla Issue 50115.

* ftp chmod could throw a NPE.
Bugzilla report 50217.

Other changes:
--------------



+ 4
- 0
contributors.xml View File

@@ -1468,4 +1468,8 @@
<first>Zdenek</first>
<last>Wagner</last>
</name>
<name>
<first/>
<last>riasol</last>
</name>
</contributors>

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -2102,7 +2102,7 @@ public class FTP extends Task implements FTPTaskConfig {
myReply = ftp.getReplyStrings();

for (int x = 0; x < myReply.length; x++) {
if (myReply[x].indexOf("200") == -1) {
if (myReply[x] != null && myReply[x].indexOf("200") == -1) {
log(myReply[x], Project.MSG_WARN);
}
}


Loading…
Cancel
Save