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

Commit 000c3ff9 authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

Fix NullPointer in VpnServiceBinder.checkStatus().

parent 8e3c3f64
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -71,9 +71,8 @@ public class VpnServiceBinder extends Service {
    }

    private synchronized void checkStatus(VpnProfile p) {
        if (mService == null) broadcastConnectivity(p.getName(), VpnState.IDLE);

        if (!p.getName().equals(mService.mProfile.getName())) {
        if ((mService == null)
                || (!p.getName().equals(mService.mProfile.getName()))) {
            broadcastConnectivity(p.getName(), VpnState.IDLE);
        } else {
            broadcastConnectivity(p.getName(), mService.getState());