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:
parent
51ad31a513
commit
0d80dd8fe1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user