[OpenLayers-Commits] r12084 - trunk/openlayers/lib/OpenLayers/Format

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Jun 15 03:48:07 EDT 2011


Author: bartvde
Date: 2011-06-15 00:48:06 -0700 (Wed, 15 Jun 2011)
New Revision: 12084

Modified:
   trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js
Log:
fix up WFSCapabilities tests, thanks pgiraud for the report (closes #2234)

Modified: trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js	2011-06-15 07:21:18 UTC (rev 12083)
+++ trunk/openlayers/lib/OpenLayers/Format/OWSCommon.js	2011-06-15 07:48:06 UTC (rev 12084)
@@ -66,7 +66,7 @@
             // remember version does not correspond to the OWS version
             // it corresponds to the WMS/WFS/WCS etc. request version
             var uri = root.getAttribute("xmlns:ows");
-            if (uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
+            if (uri && uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
                 version ="1.1.0";
             } 
             if(!version) {



More information about the Commits mailing list