SimpleFeatureImpl.getProperty(name) NPE if the property is uknown, it should
return null instead
------------------------------------------------------------------------------------------------
Key: GEOT-2061
URL: http://jira.codehaus.org/browse/GEOT-2061
Project: GeoTools
Issue Type: Bug
Components: core main
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 2.4.6
Feature.getProperty contracts says a null should be returned if an uknown
property name is provided, SimpleFeatureImpl.getProperty reacts with an NPE
instead. This is due to the index lookup, which returns null, and the
autoboxing trying to convert that to an int, failing with an NPE.
--
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