Skip to content

Commit 6537b02

Browse files
author
Robert Greenwalt
committed
Fix Wimax-less build.
A build with the wimax network type defined but wimax disabled causes an NPE in ConnectivityService's constructor. bug:5237167 Change-Id: I929eac217e1afa0e61346fdbc3e96a7d3ad09a54
1 parent 785fd36 commit 6537b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/java/com/android/server/ConnectivityService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ public ConnectivityService(Context context, INetworkManagementService netd,
514514
continue;
515515
}
516516
mCurrentLinkProperties[netType] = null;
517-
if (mNetConfigs[netType].isDefault()) mNetTrackers[netType].reconnect();
517+
if (mNetTrackers[netType] != null && mNetConfigs[netType].isDefault()) {
518+
mNetTrackers[netType].reconnect();
519+
}
518520
}
519521

520522
IBinder b = ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE);

0 commit comments

Comments
 (0)