Rework check to fix NPE

This commit is contained in:
Philip Whitehouse 2017-08-29 08:07:36 +01:00
parent ddc1b7094c
commit e00ff9d1fb

View file

@ -905,11 +905,12 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
mUseIncomingView.setChecked(mUseIncoming);
}
} else {
// Trigger afterTextChanged() being called
// Work around this bug: https://code.google.com/p/android/issues/detail?id=6360
if (configureIncomingServer) {
// Trigger afterTextChanged() being called
// Work around this bug: https://code.google.com/p/android/issues/detail?id=6360
mIncomingPasswordView.setText(mIncomingPasswordView.getText());
} else {
}
if (configureOutgoingServer) {
mOutgoingPasswordView.setText(mOutgoingPasswordView.getText());
}
}