Handle null NetworkState updates

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering to WiFi and mobile switching works
Bug: 32163131
Change-Id: I2d4ef7c135ae6eb50cc31236f2fd20080536ea6a
This commit is contained in:
Erik Kline
2017-03-07 13:17:39 +09:00
parent 9324d6513b
commit 34baa3da4e

View File

@@ -1206,7 +1206,8 @@ public class Tethering extends BaseNetworkObserver implements IControlsTethering
protected void handleNewUpstreamNetworkState(NetworkState ns) {
mIPv6TetheringCoordinator.updateUpstreamNetworkState(ns);
mOffloadController.setUpstreamLinkProperties(ns.linkProperties);
mOffloadController.setUpstreamLinkProperties(
(ns != null) ? ns.linkProperties : null);
}
}