[Geoserver-devel] [jira] (GEOS-6722) _ in style name blocks legendMap

Christophe Moisy created an issue

GeoServer / BugGEOS-6722

_ in style name blocks legendMap

Issue Type:

BugBug

Affects Versions:

2.6.0

Assignee:

Andrea Aime

Components:

Global

Created:

13/Oct/14 3:15 AM

Environment:

linux / Debian Sarge

Priority:

MinorMinor

Reporter:

Christophe Moisy

when creating a style with an underscore in its name (_), nee_scale for example, the style is not working with legendMap (no image is returned)
log is :
13 oct. 10:13:01 INFO [geoserver.wms] -
Request: getServiceInfo
13 oct. 10:13:01 INFO [geoserver.wms] -
Request: getServiceInfo
13 oct. 10:13:01 ERROR [geoserver.ows] -
java.lang.NullPointerException: request.getStyle()
at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:207)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:41)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:22)
at org.geoserver.wms.GetLegendGraphic.run(GetLegendGraphic.java:49)
at org.geoserver.wms.DefaultWebMapService.getLegendGraphic(DefaultWebMapService.java:358)
at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo