Fix NPE when operating on multiple conversations in batch mode.

This commit is contained in:
Cody Henthorne
2021-08-09 11:54:40 -04:00
parent 182c758d35
commit f99ff32947

View File

@@ -853,7 +853,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
alert.setCancelable(true);
alert.setPositiveButton(R.string.delete, (dialog, which) -> {
final Set<Long> selectedConversations = defaultAdapter.getBatchSelectionIds();
final Set<Long> selectedConversations = new HashSet<>(defaultAdapter.getBatchSelectionIds());
if (!selectedConversations.isEmpty()) {
new AsyncTask<Void, Void, Void>() {