diff options
| -rw-r--r-- | core/java/android/net/Ikev2VpnProfile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/net/Ikev2VpnProfile.java b/core/java/android/net/Ikev2VpnProfile.java index ba0546aceb95..3979c6c78dcb 100644 --- a/core/java/android/net/Ikev2VpnProfile.java +++ b/core/java/android/net/Ikev2VpnProfile.java @@ -171,7 +171,7 @@ public final class Ikev2VpnProfile extends PlatformVpnProfile { mPassword = password; mRsaPrivateKey = rsaPrivateKey; mUserCert = userCert; - mProxyInfo = new ProxyInfo(proxyInfo); + mProxyInfo = (proxyInfo == null) ? null : new ProxyInfo(proxyInfo); // UnmodifiableList doesn't make a defensive copy by default. mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms)); |