From fe02f0c44ad43b6223313b709df5b1cac832309b Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 5 Mar 2013 03:54:27 +0100 Subject: [PATCH] Avoid NPE reported via Play Store --- src/com/fsck/k9/fragment/MessageListFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 4e86e107c..5d670b448 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1707,7 +1707,12 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick } private boolean updateForMe(Account account, String folder) { - //FIXME + if (account == null || folder == null) { + return false; + } + + // FIXME: There could be more than one account and one folder + return ((account.equals(mAccount) && folder.equals(mFolderName))); } }