Merge pull request #2712 from philipwhiuk/fixAccountsNPE

Rework check to fix NPE
This commit is contained in:
cketti 2017-08-29 15:51:50 +02:00 committed by GitHub
commit 8639664f7c

View file

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