GetFeatureInfo + GML output + click on a empty area = service exception
-----------------------------------------------------------------------
Key: GEOS-4651
URL: https://jira.codehaus.org/browse/GEOS-4651
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 2.1.1
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 2.1.2
As the summary says, when trying to encode collection bounds GetFeatureInfo with GML format will throw a service exception with the following trace:
{code}
...
Caused by: java.lang.NullPointerException
at org.geotools.gml.producer.GeometryTransformer$GeometryTranslator.encode(GeometryTransformer.java:158)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.writeBounds(FeatureTransformer.java:665)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:506)
at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:714)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:296)
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:129)
... 52 more
{code}
The code cannot handle the empty array of feature collections it is asked to encode properly and will throw this exception.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira