Fixed crash

This commit is contained in:
M66B 2020-01-05 11:13:04 +01:00
parent f596d32deb
commit 895f7128dd
1 changed files with 4 additions and 2 deletions

View File

@ -375,9 +375,11 @@ public class FragmentIdentity extends FragmentBase {
EntityAccount account = (EntityAccount) spAccount.getSelectedItem(); EntityAccount account = (EntityAccount) spAccount.getSelectedItem();
etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD || etUser.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
account == null || !provider.imap.host.equals(account.host)); account == null ||
provider.imap.host == null || !provider.imap.host.equals(account.host));
tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD || tilPassword.setEnabled(auth == MailService.AUTH_TYPE_PASSWORD ||
account == null || !provider.imap.host.equals(account.host)); account == null ||
provider.imap.host == null || !provider.imap.host.equals(account.host));
} }
@Override @Override