Bug 899990 - Null check xhr.response to avoid spammy JS exceptions; r=jdm

--HG--
extra : rebase_source : d1b78bc695896565c8ac7d327da62f324a44bb51
This commit is contained in:
Ed Morley 2013-07-31 18:02:05 +01:00
parent 4c48878187
commit 9fd3792ee3

View File

@ -185,7 +185,7 @@ WifiGeoPositionProvider.prototype = {
return;
}
if (!xhr.response.location) {
if (!xhr.response || !xhr.response.location) {
return;
}