[Geoserver-devel] [jira] (GEOS-5808) Style names with & in them won't render

Jonathan Moules created BugGEOS-5808
Style names with & in them won’t render

Issue Type:

BugBug

Affects Versions:

2.3.1

Assignee:

Andrea Aime

Created:

10/May/13 7:26 AM

Description:

I have a simple style. I’ve given it the GeoServer name of “point A&E hospital” (this is in GeoServer, not the SLD). GeoServer won’t render it giving the below error. If I rename the style to “point AandE hospital” it works fine.

2013-05-10 13:23:43,980 WARN [geoserver.monitor] - Error handling request object
java.lang.NullPointerException
at org.geoserver.monitor.ows.wms.GetLegendGraphicHandler.getLayers(GetLegendGraphicHandler.java:27)
at org.geoserver.monitor.ows.RequestObjectHandler.handle(RequestObjectHandler.java:48)
at org.geoserver.monitor.ows.MonitorCallback.operationDispatched(MonitorCallback.java:93)
at org.geoserver.ows.Dispatcher.fireOperationDispatchedCallback(Dispatcher.java:729)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:724)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:263)

2013-05-10 13:23:43,995 ERROR [geoserver.ows] -
java.lang.NullPointerException: request.getStyle()
at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:204)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:40)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:21)
at org.geoserver.wms.GetLegendGraphic.run(GetLegendGraphic.java:48)
at org.geoserver.wms.DefaultWebMapService.getLegendGraphic(DefaultWebMapService.java:385)
at sun.reflect.GeneratedMethodAccessor207.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)