diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 3089e31e12..3e3f70a1fa 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -115,11 +115,13 @@ OpenLayers.Layer.WFS.prototype = //add standard URL urls.push( this.getFullRequestString( { BBOX:bounds.toBBOX() }) ); - // if there are more urls, add them. - for(var i=0; i < this.urls.length; i++) { - var newUrl = this.getFullRequestString( { BBOX:bounds.toBBOX() }, - this.urls[i] ); - urls.push(newUrl); + if (this.urls != null) { + // if there are more urls, add them. + for(var i=0; i < this.urls.length; i++) { + var newUrl = this.getFullRequestString( { BBOX:bounds.toBBOX() }, + this.urls[i] ); + urls.push(newUrl); + } } return new OpenLayers.Tile.WFS(this, position, bounds,