mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix NPE when operating on multiple conversations in batch mode.
This commit is contained in:
@@ -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>() {
|
||||
|
||||
Reference in New Issue
Block a user