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

Unverified Commit a3bed923 authored by Sebastiano Barezzi's avatar Sebastiano Barezzi
Browse files

ProfileManagerService: Don't kill the entire system if WifiManager is null

Change-Id: I53ceed998c19e956df75dcffe08449714172c8be
parent fb4dfb48
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -189,10 +189,10 @@ public class ProfileTriggerHelper extends BroadcastReceiver {
    }

    private String getActiveSSID() {
        if (mWifiManager != null) {
            WifiInfo wifiinfo = mWifiManager.getConnectionInfo();
        if (wifiinfo == null) {
            return null;
            return wifiinfo != null ? removeDoubleQuotes(wifiinfo.getSSID()) : null;
        }
        return removeDoubleQuotes(wifiinfo.getSSID());
        return null;
    }
}