laptop and a wrench

Bug

A custom widget that adds or removes a KML layer works but returns an error in the console, "Cannot read property 'destroyLayerInfo' of null".

Last Published: August 1, 2017 ArcGIS Web AppBuilder for Developers
Bug ID Number BUG-000105948
SubmittedJune 20, 2017
Last ModifiedApril 27, 2022
Applies toArcGIS Web AppBuilder for Developers
Version found2.4
Operating SystemN/A
Operating System VersionN/A
StatusIn Review

Workaround

If the below line is added after the line 840, the error does not appear anymore.if(layerInfoSelf != null){layerInfoSelf.destroyLayerInfo();}

Steps to Reproduce

Bug ID: BUG-000105948

Software:

  • ArcGIS Web AppBuilder for Developers

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options