From 7b7afb357bbcc37c85a29c5aa2e79b7720b8ad60 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Sun, 28 Jun 2020 14:30:44 +0200 Subject: [PATCH] NPE --- src/renderer/loaders/TaxiwaySegmentExtender.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/loaders/TaxiwaySegmentExtender.js b/src/renderer/loaders/TaxiwaySegmentExtender.js index 89a0f7c..98f18cf 100644 --- a/src/renderer/loaders/TaxiwaySegmentExtender.js +++ b/src/renderer/loaders/TaxiwaySegmentExtender.js @@ -192,7 +192,8 @@ exports.extendTaxiSegment = function (taxiwaySegment) { console.log(event) }); this.on('editable:vertex:clicked', function (event) { - if (Number(store.default.state.Editable.index) >= 0) { + if (Number(store.default.state.Editable.index) >= 0 && + this.featureLookup[store.default.state.Editable.index] !== undefined) { this.featureLookup[store.default.state.Editable.index].forEach(element => { if(element.deselect !== undefined) { element.deselect();