Fix NPE when moving a message from Unified Inbox (multiple accounts)

This commit is contained in:
cketti 2013-03-05 04:09:47 +01:00
parent fe02f0c44a
commit c07f94e877

View file

@ -2309,7 +2309,9 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
folder = null;
}
displayFolderChoice(ACTIVITY_CHOOSE_FOLDER_MOVE, mAccount, folder, messages);
Account account = messages.get(0).getFolder().getAccount();
displayFolderChoice(ACTIVITY_CHOOSE_FOLDER_MOVE, account, folder, messages);
}
private void onCopy(Message message) {