--- FTP.java Thu Aug 18 21:54:06 2005 +++ FTP.new.java Thu Aug 18 21:50:34 2005 @@ -533,9 +533,11 @@ + 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) { + if (array[pcounter] != null) { + if (array[pcounter].getName().equals(target) && pcounter != icounter) { candidateFound = false; - } + } + } } if (candidateFound) { break;