Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: main
-
Labels:None
Description
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.
Issue Links
- is related to
-
GEO-156
NPE in org.opengis.feature.IllegalAttributeException.toString()
-