What error handling can I implement to catch this error (or bug)? The error happens when the first point is added to the map and no measurement is made other than double click on top of the first point. Once this error happens the area measure tool completely fails to work without reloading the page.
Uncaught TypeError: Cannot read property 'measurement' of null
at d._updateGraphics (AreaMeasurement2DTool.js:20)
at d._updateSketch (AreaMeasurement2DTool.js:19)
at AreaMeasurement2DTool.js:16
at ?ver=4.16:515
at Array.forEach (<anonymous>)
at c.emit (?ver=4.16:515)
at d.emit (?ver=4.16:517)
at d.n._updateCursor (Sketch.js:405)
at Sketch.js:398
at a._callback (?ver=4.16:2113)