Fix NPE when operating on multiple conversations in batch mode.

fork-5.53.8
Cody Henthorne 2021-08-09 11:54:40 -04:00
rodzic 182c758d35
commit f99ff32947
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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>() {