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);