From 9fd3792ee39e050f6819326b7504ac326f9a37b7 Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Wed, 31 Jul 2013 18:02:05 +0100 Subject: [PATCH] Bug 899990 - Null check xhr.response to avoid spammy JS exceptions; r=jdm --HG-- extra : rebase_source : d1b78bc695896565c8ac7d327da62f324a44bb51 --- dom/system/NetworkGeolocationProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/system/NetworkGeolocationProvider.js b/dom/system/NetworkGeolocationProvider.js index b1d679da5eb..f533bad3013 100755 --- a/dom/system/NetworkGeolocationProvider.js +++ b/dom/system/NetworkGeolocationProvider.js @@ -185,7 +185,7 @@ WifiGeoPositionProvider.prototype = { return; } - if (!xhr.response.location) { + if (!xhr.response || !xhr.response.location) { return; }