ShpFiles(File) constructor throws NullPointerException for certain invalid paths
--------------------------------------------------------------------------------

                 Key: GEOT-2194
                 URL: http://jira.codehaus.org/browse/GEOT-2194
             Project: GeoTools
          Issue Type: Bug
          Components: data shapefile
    Affects Versions: 2.5.0
            Reporter: Milton Jonathan
            Assignee: Jesse Eichar
            Priority: Trivial
             Fix For: 2.5.2
         Attachments: geotools-tecgraf.2.5.x.ShpFiles_findExistingFile.patch

The ShpFiles(File) constructor allows one to pass a File with an invalid patch 
such as "nowhere/test.shp". In this case, its initialization routine ends up 
calling findExistingFile(), which fails to see that the file's parent directory 
is non-existent - it assumes that file.getParentFile() should return null if 
the path is invalid. A patch is provided to fix the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to