[Geoserver-devel] [JIRA] (GEOS-7558) WMSValidator should use attributes() instead of getAttributes()

Alessio Fabiani created an issue

GeoServer / BugGEOS-7558

WMSValidator should use attributes() instead of getAttributes()

Issue Type:

BugBug

Assignee:

Unassigned

Created:

26/May/16 2:19 PM

Priority:

MediumMedium

Reporter:

Alessio Fabiani

The WMSValidator, when trying to validate a FeatureInfo, looks for the geometry attribute binding through the getAttributes() method.

https://github.com/geoserver/geoserver/blob/bf0345d228111c15aeff6f7c1bc87b4ed230af96/src/wms/src/main/java/org/geoserver/wms/WMSValidator.java#L65

This may fail if the Resource has not been loaded and the configuration does not contain the type of the attributes.

In order to avoid this issue (which may cause an NPE) the WMSValidator should call the method attributes() instead.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.5.2#72002-sha1:b4422fe)

Atlassian logo