NPE when editing

This commit is contained in:
Keith Paterson 2021-05-28 10:22:30 +02:00
parent 5e0e2c9ea5
commit ed25672448

View File

@ -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.$store.commit('SET_EDIT', true)
this.featureLookup = []; this.featureLookup = [];
if(!this.groundnetLayerGroup) {
return;
}
this.groundnetLayerGroup.eachLayer(l => { this.groundnetLayerGroup.eachLayer(l => {
l.enableEdit() l.enableEdit()
l.featureLookup = this.featureLookup; l.featureLookup = this.featureLookup;