From 69c599b8811c262206f255cebcbf3d097e0a6806 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 28 Jun 2006 02:38:05 +0000 Subject: [PATCH] If there's no options passed, this would fail. So let's check that git-svn-id: http://svn.openlayers.org/trunk/openlayers@819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WFS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 7063d4f8cc..03c2928569 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -42,7 +42,7 @@ OpenLayers.Layer.WFS.prototype = OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); - if (options['tileSize']) { + if (options && options['tileSize']) { this.tileSize = options['tileSize'].copyOf(); } else { this.tileSize = new OpenLayers.Size(256, 256);