This issue is caused by Leaflet.draw plugin, I set "L_PREFER_CANVAS =true;" in my page and draw polylines on Map, then exception thrown at this line: <pre> if (this._map._animatingZoom) { return; } </pre> At this time this._map is null.