Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 85964 invoked from network); 19 Aug 2005 09:12:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 09:12:41 -0000 Received: (qmail 78641 invoked by uid 500); 19 Aug 2005 09:12:40 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 78566 invoked by uid 500); 19 Aug 2005 09:12:39 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 78552 invoked by uid 99); 19 Aug 2005 09:12:39 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 02:12:39 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 6C917E3; Fri, 19 Aug 2005 11:12:38 +0200 (CEST) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 36258] - Solution for ant ftp fails with Nullpointerexception when a symlink is evaluated in method checkRemoteSensitivity in FTP.java for a z/OS ftp server X-Bugzilla-Reason: AssignedTo Message-Id: <20050819091238.6C917E3@ajax.apache.org> Date: Fri, 19 Aug 2005 11:12:38 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36258 ------- Additional Comments From stevel@apache.org 2005-08-19 11:12 ------- 1. please try against CVS_HEAD or Ant1.6.5 and verify that the problem is still there. I suspect it is, but, we need to be sure, and diffs against latest code are easier to apply. 2, the patch hides a symptom, not the underlying cause, and we should fix it properly. Assuming the defect is in this code (now moved a bit down the files) for (int icounter = 0; icounter < array.length; icounter++) { if (array[icounter].isDirectory()) { if (!array[icounter].getName().equals(".") && !array[icounter].getName().equals("..")) { candidateFound = true; target = fiddleName(array[icounter].getName()); getProject().log("will try to cd to " + target + " where a directory called " + array[icounter].getName() + " exists", Project.MSG_DEBUG); for (int pcounter = 0; pcounter < array.length; pcounter++) { if (array[pcounter].getName().equals(target) && pcounter != icounter) { candidateFound = false; } } if (candidateFound) { break; } } } } then we are iterating twice through the array. the outer loop needs to handle nullness too, or we should strip null pointers out earlier. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org