Skip to content

Commit

Permalink
Bug 1479354 - Null-check this.listener when reporting cached geolocat…
Browse files Browse the repository at this point in the history
…ion values r=jdm

--HG--
extra : rebase_source : 9fe49c7520b4ccc24f4ef833a84662fbafa68d70
  • Loading branch information
so61pi committed Jul 31, 2018
1 parent cfe2351 commit 1185869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/system/NetworkGeolocationProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ WifiGeoPositionProvider.prototype = {

if (useCached) {
gCachedRequest.location.timestamp = Date.now();
this.listener.update(gCachedRequest.location);
if (this.listener) {
this.listener.update(gCachedRequest.location);
}
return;
}

Expand Down

0 comments on commit 1185869

Please sign in to comment.