From c07f94e877e997213479ab178af15da7351fe338 Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 5 Mar 2013 04:09:47 +0100 Subject: [PATCH] Fix NPE when moving a message from Unified Inbox (multiple accounts) --- src/com/fsck/k9/fragment/MessageListFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 5d670b448..30760d9bf 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -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) {