Certificate exception is expected

pull/194/head
M66B 4 years ago
parent 9099bb036e
commit 734dd57f5f

@ -79,6 +79,7 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.spec.KeySpec;
@ -1151,6 +1152,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
// DecoderException: unable to decode base64 string: invalid characters encountered in base64 data
boolean expected =
(ex instanceof IllegalArgumentException ||
ex instanceof CertificateException ||
ex instanceof DecoderException ||
ex instanceof SecurityException);
Log.unexpectedError(getSupportFragmentManager(), ex, !expected);

Loading…
Cancel
Save