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

Commit 70c117a8 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Fix Tethering NPE

Bug: 10733373
Change-Id: I1d81eb8a60be2b672b925be7577f1288fe870237
parent fedbe272
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -489,8 +489,10 @@ public class Tethering extends BaseNetworkObserver {
    }

    private class StateReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context content, Intent intent) {
            String action = intent.getAction();
            if (action == null) { return; }
            if (action.equals(UsbManager.ACTION_USB_STATE)) {
                synchronized (Tethering.this.mPublicSync) {
                    boolean usbConnected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false);