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

Commit c6e2c78e authored by Takashi Furukawa's avatar Takashi Furukawa Committed by android-build-merger
Browse files

Merge "Add null check for Wi-Fi command" am: 43ee2ac1 am: 51e24de1

am: a6e588ff

Change-Id: I4b09b7af3edc8656378a2abec2c395c07bb61fae
parents b5433404 a6e588ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,10 @@ public class WifiCommand extends Svc.Command {
            if (validCommand) {
                IWifiManager wifiMgr
                        = IWifiManager.Stub.asInterface(ServiceManager.getService(Context.WIFI_SERVICE));
                if (wifiMgr == null) {
                    System.err.println("Wi-Fi service is not ready");
                    return;
                }
                try {
                    wifiMgr.setWifiEnabled("com.android.shell", flag);
                }