Skip to content

Commit

Permalink
fix null pointer error [PR makinacorpus#69]
Browse files Browse the repository at this point in the history
  • Loading branch information
olzraiti committed Aug 21, 2020
1 parent 367eb81 commit 6f3eb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet.textpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var PolylineTextPath = {

/* If not in SVG mode or Polyline not added to map yet return */
/* setText will be called by onAdd, using value stored in this._text */
if (!L.Browser.svg || typeof this._map === 'undefined') {
if (!L.Browser.svg || !this._map) {
return this;
}

Expand Down

0 comments on commit 6f3eb16

Please sign in to comment.