Ensure that GeoRSS format does not fail when reprojection null geometries.

patch=Edgemaster, ar=me (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-01-22 00:17:29 +00:00
parent bf39fa06a9
commit 6937fabe3a
2 changed files with 8 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {
geometry = feature.geometry;
}
if (this.internalProjection && this.externalProjection) {
if (geometry && this.internalProjection && this.externalProjection) {
geometry.transform(this.externalProjection,
this.internalProjection);
}