Errors in Types cause NPE when printing stack trace
---------------------------------------------------

                 Key: GEOT-2111
                 URL: http://jira.codehaus.org/browse/GEOT-2111
             Project: GeoTools
          Issue Type: Bug
          Components: core main
            Reporter: Ben Caradoc-Davies
            Assignee: Jody Garnett
            Priority: Minor


On trunk:

org.geotools.feature.types.Types reports some errors by throwing the deprecated 
exception org.geotools.feature.IllegalAttributeException, which should never be 
used because it puts org.opengis.feature.IllegalAttributeException into an 
invalid state (descriptor = null) that causes NullPointerException in 
toString(). This make debugging hugely painful because toString() is called 
when constructing the stack trace, and the NPE causes the original exception 
and trace to be lost.

Please refactor org.geotools.feature.types.Types to not use 
org.geotools.feature.IllegalAttributeException.

-- 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to