Don't try to operate on an uninitialized drawer
This is necessary whenever the account list is configured as default
starting view.
Fixes
@@ -1698,7 +1698,9 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
List<String> folderServerIds = search.getFolderServerIds();
singleFolderMode = singleAccountMode && folderServerIds.size() == 1;
- if (singleFolderMode) {
+ if (drawer == null) {
+ return;
+ } else if (singleFolderMode) {
drawer.selectFolder(folderServerIds.get(0));
} else if (search.getId().equals(SearchAccount.UNIFIED_INBOX)) {
drawer.selectUnifiedInbox();
