Fix NPE when rendering group member item.
This commit is contained in:
parent
e5b628b467
commit
a37b89feaf
1 changed files with 4 additions and 1 deletions
|
@ -215,7 +215,10 @@ final class GroupMemberListAdapter extends LifecycleRecyclerAdapter<GroupMemberL
|
||||||
void bindImageAndText(@NonNull Recipient recipient, @NonNull String displayText, @Nullable String about) {
|
void bindImageAndText(@NonNull Recipient recipient, @NonNull String displayText, @Nullable String about) {
|
||||||
this.recipient.setText(displayText);
|
this.recipient.setText(displayText);
|
||||||
this.avatar.setRecipient(recipient);
|
this.avatar.setRecipient(recipient);
|
||||||
this.badge.setBadgeFromRecipient(recipient);
|
|
||||||
|
if (this.badge != null) {
|
||||||
|
this.badge.setBadgeFromRecipient(recipient);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.about != null) {
|
if (this.about != null) {
|
||||||
this.about.setText(about);
|
this.about.setText(about);
|
||||||
|
|
Loading…
Add table
Reference in a new issue