Merge "Handle null NetworkState updates"

This commit is contained in:
Treehugger Robot
2017-03-07 06:24:16 +00:00
committed by Gerrit Code Review

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);
}
}