Index: trunk/scripts/SyncEditorLayerIndex.groovy
===================================================================
--- trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13830)
+++ trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13831)
@@ -22,4 +22,5 @@
 import javax.json.JsonObject
 import javax.json.JsonReader
+import javax.json.JsonValue
 
 import org.openstreetmap.josm.Main
@@ -989,20 +990,18 @@
             return []
         }
-        if(!e.isNull("geometry")) {
-            def ex = e.get("geometry")
-            if(ex != null && !ex.isNull("coordinates")) {
-                def poly = ex.get("coordinates")
-                List<Shape> l = []
-                for(def shapes: poly) {
-                    def s = new Shape()
-                    for(def point: shapes) {
-                        def lon = point[0].toString()
-                        def lat = point[1].toString()
-                        s.addPoint(lat, lon)
-                    }
-                    l.add(s)
-                }
-                return l
-            }
+        def ex = e.get("geometry")
+        if (ex != null && !JsonValue.NULL.equals(ex) && !ex.isNull("coordinates")) {
+            def poly = ex.get("coordinates")
+            List<Shape> l = []
+            for(def shapes: poly) {
+                def s = new Shape()
+                for(def point: shapes) {
+                    def lon = point[0].toString()
+                    def lat = point[1].toString()
+                    s.addPoint(lat, lon)
+                }
+                l.add(s)
+            }
+            return l
         }
         return []
