diff --git a/htdocs/streeteditor.js b/htdocs/streeteditor.js index 8b86a4a..27addb5 100644 --- a/htdocs/streeteditor.js +++ b/htdocs/streeteditor.js @@ -28,6 +28,8 @@ if (editor_mode) { } function onDragEnd(e) { + if (!polyline) + return; var latlngs = polyline.getLatLngs(); for (var i = 0; i < latlngs.length; i++) {