[Mapbender-commits] r8989 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jul 4 05:52:52 PDT 2014
Author: hwbllmnn
Date: 2014-07-04 05:52:52 -0700 (Fri, 04 Jul 2014)
New Revision: 8989
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
fixed null pointer
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-07-04 12:50:29 UTC (rev 8988)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-07-04 12:52:52 UTC (rev 8989)
@@ -745,8 +745,14 @@
this.activate = function () {
$('#kml-digitizer-pseudo').click();
- var mode = status.match(/(new|edit)-.+/)[1];
+ var mode = status.match(/(new|edit)-.+/);
+ if(!mode) {
+ return;
+ };
+
+ mode = mode[1];
+
if(mode === 'new') {
editDialog.dialog('close');
attributesDialog.dialog('close');
More information about the Mapbender_commits
mailing list