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

Commit 70cae1ce authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix code for NPE when click add and cancel repeatly VPN profile"

parents bf857c73 36b314c6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -143,6 +143,10 @@ public class ConfigDialogFragment extends InstrumentedDialogFragment implements
    @Override
    public void onClick(DialogInterface dialogInterface, int button) {
        ConfigDialog dialog = (ConfigDialog) getDialog();
        if (dialog == null) {
            Log.e(TAG, "ConfigDialog object is null");
            return;
        }
        VpnProfile profile = dialog.getProfile();

        if (button == DialogInterface.BUTTON_POSITIVE) {