ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <>
Subject [PATCH] - some additional checks
Date Thu, 05 Oct 2000 09:50:51 GMT
1. Check if user specified file and toFile and file contains a directory
2. Check if the target already exists as a file if trying to copy a

Both throwing ugly Java-Exceptions otherwise (at least on W2K)


I've got a NullPointerException in this part of Delete:

    protected void removeDir(File d) {
        String[] list = d.list();
        for (int i = 0; i < list.length; i++) {

where list seemed to be null but I could not reproduce this. Since this is
only called for directories this can not normally happen if you call list()
on a directory according to the api-docs I left it unchanged...

View raw message