mapbox-gl-geocoder
mapbox-gl-geocoder copied to clipboard
Potential `null` dereference in `onRemove()`
It's possible that parentNode is null, which causes a null dereference:
https://github.com/mapbox/mapbox-gl-geocoder/blob/5ac5826bd8e51fd6219bb269a4cc2bba0ac4902d/lib/index.js#L395
This can occur if the geocoder adds itself to a map, then map.remove() is called, and then the geocoder tries to remove itself from the map.