mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1095914 - Fix NPE from no app context. r=vng
https://github.com/mozilla/MozStumbler/pull/1195 1187 - NPE - Appears to be from no app context
This commit is contained in:
parent
0f54d54527
commit
163c7f8745
@ -98,6 +98,11 @@ public class ScanManager {
|
||||
}
|
||||
|
||||
mContext = context.getApplicationContext();
|
||||
if (mContext == null) {
|
||||
Log.w(LOG_TAG, "No app context available.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (mGPSScanner == null) {
|
||||
mGPSScanner = new GPSScanner(context, this);
|
||||
mWifiScanner = new WifiScanner(context);
|
||||
|
Loading…
Reference in New Issue
Block a user