Skip to content

Commit

Permalink
Fix crash in MMS group creation.
Browse files Browse the repository at this point in the history
Fixes #9901
  • Loading branch information
greyson-signal committed Aug 3, 2020
1 parent d5ba823 commit 566285e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ void bindRecipientClick(@NonNull Recipient recipient) {
if (recipientClickListener != null) {
recipientClickListener.onClick(recipient);
}
selectionChangeListener.onSelectionChange(getAdapterPosition(), !selected.isChecked());
if (selected != null) {
selectionChangeListener.onSelectionChange(getAdapterPosition(), !selected.isChecked());
}
}
});
this.itemView.setOnLongClickListener(v -> {
Expand Down

0 comments on commit 566285e

Please sign in to comment.