Merge "Fix code for NPE when click add and cancel repeatly VPN profile" am: 70cae1ce8d

am: 2c0ba8b48e

Change-Id: I853372683440048c16141b0fb2b46bbc6f27e972
This commit is contained in:
sj.cha
2019-04-09 11:44:05 -07:00
committed by android-build-merger

View File

@@ -119,6 +119,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) {