Merge "Correctly handle null ProxyInfo in Ikev2VpnProfile" am: a03fa63d19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2200896 Change-Id: Ie3910c0117a77413e6c59d02315590354b2a8447 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -171,7 +171,7 @@ public final class Ikev2VpnProfile extends PlatformVpnProfile {
|
|||||||
mPassword = password;
|
mPassword = password;
|
||||||
mRsaPrivateKey = rsaPrivateKey;
|
mRsaPrivateKey = rsaPrivateKey;
|
||||||
mUserCert = userCert;
|
mUserCert = userCert;
|
||||||
mProxyInfo = new ProxyInfo(proxyInfo);
|
mProxyInfo = (proxyInfo == null) ? null : new ProxyInfo(proxyInfo);
|
||||||
|
|
||||||
// UnmodifiableList doesn't make a defensive copy by default.
|
// UnmodifiableList doesn't make a defensive copy by default.
|
||||||
mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms));
|
mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms));
|
||||||
|
|||||||
Reference in New Issue
Block a user