add null check

closes sk22#414
This commit is contained in:
sk 2023-02-07 15:29:56 +01:00
parent 4884667484
commit ca5827e3f8
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
} }
public void onEnableExpandable(TextStatusDisplayItem.Holder holder, boolean expandable) { public void onEnableExpandable(TextStatusDisplayItem.Holder holder, boolean expandable) {
if (holder.getItem().status.textExpandable != expandable) { if (holder.getItem().status.textExpandable != expandable && list != null) {
holder.getItem().status.textExpandable = expandable; holder.getItem().status.textExpandable = expandable;
HeaderStatusDisplayItem.Holder header = findHolderOfType(holder.getItemID(), HeaderStatusDisplayItem.Holder.class); HeaderStatusDisplayItem.Holder header = findHolderOfType(holder.getItemID(), HeaderStatusDisplayItem.Holder.class);
if (header != null) header.rebind(); if (header != null) header.rebind();