mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Merge pull request #134 from yarikoptic/upstream
BF: mAccount must not be accessed before verfied to be non-null
This commit is contained in:
commit
bfecdc9443
@ -820,15 +820,14 @@ public class MessageList
|
|||||||
mStars = K9.messageListStars();
|
mStars = K9.messageListStars();
|
||||||
mCheckboxes = K9.messageListCheckboxes();
|
mCheckboxes = K9.messageListCheckboxes();
|
||||||
|
|
||||||
mSortType = mAccount.getSortType();
|
|
||||||
mSortAscending = mAccount.isSortAscending(mSortType);
|
|
||||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
|
||||||
|
|
||||||
mController.addListener(mAdapter.mListener);
|
mController.addListener(mAdapter.mListener);
|
||||||
|
|
||||||
Account[] accountsWithNotification;
|
Account[] accountsWithNotification;
|
||||||
if (mAccount != null) {
|
if (mAccount != null) {
|
||||||
accountsWithNotification = new Account[] { mAccount };
|
accountsWithNotification = new Account[] { mAccount };
|
||||||
|
mSortType = mAccount.getSortType();
|
||||||
|
mSortAscending = mAccount.isSortAscending(mSortType);
|
||||||
|
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||||
} else {
|
} else {
|
||||||
Preferences preferences = Preferences.getPreferences(this);
|
Preferences preferences = Preferences.getPreferences(this);
|
||||||
accountsWithNotification = preferences.getAccounts();
|
accountsWithNotification = preferences.getAccounts();
|
||||||
|
Loading…
Reference in New Issue
Block a user