Fix wrong condition

Bug: 28050399
Change-Id: If729ee2bcc5496b5ee381e490f72c751da04dc09
This commit is contained in:
Rubin Xu
2016-04-07 12:09:27 +01:00
parent 20ebbb3349
commit 492ed589df

View File

@@ -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;