From ebf82c09e9d3d215efc1ed48dbe0ae9056827944 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Sun, 29 Mar 2020 14:55:34 +0200 Subject: [PATCH] NPE --- src/renderer/components/EditLayer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index d4febdd..d2c98de 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -174,7 +174,7 @@ } }, findRouteToPushback (index) { - if (this.featureLookup===undefined) { + if (this.featureLookup===undefined || this.featureLookup[index]===undefined) { return } var parking = this.featureLookup[index].filter(n => n instanceof L.ParkingSpot)