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

Commit 34baa3da authored by Erik Kline's avatar Erik Kline
Browse files

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
parent 9324d651
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
            }
        }