* commit '788baf6d24b7cbd450ecd40fb416a2ce7a646a52': Fix NPE in ConnectivityService
This commit is contained in:
@@ -1568,9 +1568,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
return false;
|
||||
}
|
||||
NetworkStateTracker tracker = mNetTrackers[networkType];
|
||||
DetailedState netState = tracker.getNetworkInfo().getDetailedState();
|
||||
DetailedState netState = DetailedState.DISCONNECTED;
|
||||
if (tracker != null) {
|
||||
netState = tracker.getNetworkInfo().getDetailedState();
|
||||
}
|
||||
|
||||
if (tracker == null || (netState != DetailedState.CONNECTED &&
|
||||
if ((netState != DetailedState.CONNECTED &&
|
||||
netState != DetailedState.CAPTIVE_PORTAL_CHECK) ||
|
||||
tracker.isTeardownRequested()) {
|
||||
if (VDBG) {
|
||||
|
||||
Reference in New Issue
Block a user