Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 424781e2 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Fix NPE in ConnectivityService.

If it's configured with a defined network but can't create a network state tracker
for it, it would NPE and restart the framework whenever a default network
disconnects.

bug:5603268
Change-Id: I816c4f522d766e0353a713623f6635b03395b01e
parent 1f8c6212
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1597,6 +1597,7 @@ private NetworkStateTracker makeWimaxStateTracker() {
                if (checkType == prevNetType) continue;
                if (mNetConfigs[checkType] == null) continue;
                if (!mNetConfigs[checkType].isDefault()) continue;
                if (mNetTrackers[checkType] == null) continue;

// Enabling the isAvailable() optimization caused mobile to not get
// selected if it was in the middle of error handling. Specifically