Ticket #2636 (new bug)

Opened 4 years ago

openlayers does not trigger loadend when it cannot parse request reply

Reported by: arno Owned by:
Priority: minor Milestone: 2.13 Release
Component: general Version: 2.9
Keywords: Cc:
State:

Description

Hi, I've a gml layer with format GeoJSON.

when server sends not well formed geojson (this should not happen, but can happen in case of server bug), gml.read(doc) returns null, and this.addFeatures(gml.read(doc)) throws an exception in OpenLayers.Layer.GML.requestSuccess then this.events.triggerEvent("loadend"); is not executed. So script cannot be notified of a parsing error. maybe, this exception could be catched, or OpenLayers.Layer.Vector.addFeatures could check for a null argument and return directly.

Note: See TracTickets for help on using tickets.