1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 16:48:50 -05:00

Avoid another NPE

This commit is contained in:
cketti 2013-04-18 05:48:48 +02:00
parent 51ad31a513
commit 0d80dd8fe1

View File

@ -68,7 +68,6 @@ import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import com.fsck.k9.Account;
import com.fsck.k9.Account.SortType;
import com.fsck.k9.AccountStats;
import com.fsck.k9.FontSizes;
import com.fsck.k9.K9;
import com.fsck.k9.Preferences;
@ -707,6 +706,10 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
}
Cursor cursor = (Cursor) parent.getItemAtPosition(position);
if (cursor == null) {
return;
}
if (mSelectedCount > 0) {
toggleMessageSelect(position);
} else {