Prevent crash

This commit is contained in:
M66B 2021-10-12 08:52:44 +02:00
parent 41e08f3ad3
commit 5348dc35e4
1 changed files with 5 additions and 5 deletions

View File

@ -621,10 +621,10 @@ public class FragmentQuickSetup extends FragmentBase {
}
private void showResult(EmailProvider provider, Bundle args) {
X509Certificate imap_certificate =
(X509Certificate) args.getSerializable("imap_certificate");
X509Certificate smtp_certificate =
(X509Certificate) args.getSerializable("smtp_certificate");
X509Certificate imap_certificate = (args == null ? null
: (X509Certificate) args.getSerializable("imap_certificate"));
X509Certificate smtp_certificate = (args == null ? null
: (X509Certificate) args.getSerializable("smtp_certificate"));
List<String> imapNames = new ArrayList<>();
if (imap_certificate != null)
@ -644,7 +644,7 @@ public class FragmentQuickSetup extends FragmentBase {
boolean smtpMatches = (provider != null &&
EntityCertificate.matches(provider.imap.host, smtpNames));
tvUser.setText(args.getString("user"));
tvUser.setText((args == null ? null : args.getString("user")));
tvImap.setText(provider == null ? null : provider.imap.toString());
tvSmtp.setText(provider == null ? null : provider.smtp.toString());
grpSetup.setVisibility(provider == null ? View.GONE : View.VISIBLE);