* commit 'b0638de59741703d5beea43cff5f0069a4c1f85d': Null check certificate alias before trying to configure it
This commit is contained in:
commit
be08e43d71
@ -18,6 +18,7 @@
|
||||
package com.android.emailcommon.utility;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.emailcommon.Logging;
|
||||
import com.android.emailcommon.provider.HostAuth;
|
||||
@ -90,6 +91,9 @@ public class EmailClientConnectionManager extends ThreadSafeClientConnManager {
|
||||
*/
|
||||
public synchronized void registerClientCert(Context context, HostAuth hostAuth)
|
||||
throws CertificateException {
|
||||
if (TextUtils.isEmpty(hostAuth.mClientCertAlias)) {
|
||||
return;
|
||||
}
|
||||
SchemeRegistry registry = getSchemeRegistry();
|
||||
String schemeName = makeSchemeForClientCert(hostAuth.mClientCertAlias,
|
||||
hostAuth.shouldTrustAllServerCerts());
|
||||
|
Loading…
Reference in New Issue
Block a user