summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorMitchell Wills <mwills@google.com>2016-06-09 19:10:18 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-09 19:10:18 +0000
commit49872c10dc0a5ff54b47ca6af4a01a7d7d51724b (patch)
treee9ca3064410766d851fe36a17831d3bbda53d19b /service
parentbb6f5265ef8db45c4cf6e6c2b27881bf0a4f4869 (diff)
parentf1f88eebd802334339c00e12700b8e2bc8488b66 (diff)
Fix crashes in significant change when wifi hasn\\'t started am: 11bb0926a6
am: f1f88eebd8 Change-Id: I9baa8a9a3bb9612df15289efbc5921dcd3a555a0
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
index a82ce1f25..5c085432a 100644
--- a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
+++ b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
@@ -2373,12 +2373,16 @@ public class WifiScanningServiceImpl extends IWifiScanner.Stub {
}
private void trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings) {
- mScannerImpl.untrackSignificantWifiChange();
- mScannerImpl.trackSignificantWifiChange(settings, this);
+ if (mScannerImpl != null) {
+ mScannerImpl.untrackSignificantWifiChange();
+ mScannerImpl.trackSignificantWifiChange(settings, this);
+ }
}
private void untrackSignificantWifiChange() {
- mScannerImpl.untrackSignificantWifiChange();
+ if (mScannerImpl != null) {
+ mScannerImpl.untrackSignificantWifiChange();
+ }
}
private void addWifiChangeHandler(ClientInfo ci, int handler) {