Fix nullref
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2021-02-02 14:45:33 +01:00
parent 2d285eaba0
commit f26ececb9b
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
this.selectionLayer=null;
if(this.mapEventHandlerInstalled && itemLayers.length==1 && this.getItemlayer(itemLayers[0]).item.itemType == 'vnd.farmmaps.itemtype.shape.processed') {
this.selectionLayer = this.createSelectionLayer(this.getItemlayer(itemLayers[0]));
olLayers.push(this.selectionLayer)
if(this.selectionLayer) olLayers.push(this.selectionLayer)
}
}
}