1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Avoid NPE reported via Play Store

This commit is contained in:
cketti 2013-03-05 03:54:27 +01:00
parent df8ea306b8
commit fe02f0c44a

View File

@ -1707,7 +1707,12 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
} }
private boolean updateForMe(Account account, String folder) { 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))); return ((account.equals(mAccount) && folder.equals(mFolderName)));
} }
} }