From 492ed589df3609a15dd6a33709fc8d855ec1072d Mon Sep 17 00:00:00 2001 From: Rubin Xu Date: Thu, 7 Apr 2016 12:09:27 +0100 Subject: [PATCH] Fix wrong condition Bug: 28050399 Change-Id: If729ee2bcc5496b5ee381e490f72c751da04dc09 --- wifi/java/android/net/wifi/WifiEnterpriseConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java index 964bfa2f011bb..30623e66f9370 100644 --- a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java +++ b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java @@ -750,7 +750,7 @@ public class WifiEnterpriseConfig implements Parcelable { * Get CA certificates. */ @Nullable public X509Certificate[] getCaCertificates() { - if (mCaCerts != null || mCaCerts.length > 0) { + if (mCaCerts != null && mCaCerts.length > 0) { return mCaCerts; } else { return null;