From ed2567244824503c6dbd862373acf1faf6c4ff90 Mon Sep 17 00:00:00 2001 From: Keith Paterson Date: Fri, 28 May 2021 10:22:30 +0200 Subject: [PATCH] NPE when editing --- src/renderer/components/EditLayer.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index 9494f50..4fd94d5 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -224,6 +224,9 @@ You should have received a copy of the GNU General Public License along with FG this.$store.commit('SET_EDIT', true) this.featureLookup = []; + if(!this.groundnetLayerGroup) { + return; + } this.groundnetLayerGroup.eachLayer(l => { l.enableEdit() l.featureLookup = this.featureLookup;