Skip to content

Commit

Permalink
Merge pull request #447 from FineFindus/fix/crash
Browse files Browse the repository at this point in the history
fix(StatusDisplayItem): check if headerlist is empty
  • Loading branch information
LucasGGamerM authored Jul 6, 2024
2 parents cc2076e + e68e870 commit 9ea48fa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,10 @@ public void onEnableExpandable(TextStatusDisplayItem.Holder holder, boolean expa
if(s.textExpandable!=expandable && list!=null) {
s.textExpandable=expandable;
List<HeaderStatusDisplayItem.Holder> headers=findAllHoldersOfType(holder.getItemID(), HeaderStatusDisplayItem.Holder.class);
HeaderStatusDisplayItem.Holder header=headers.size() > 1 && isForQuote ? headers.get(1) : headers.get(0);
if(header!=null) header.bindCollapseButton();
if(headers!=null && !headers.isEmpty()){
HeaderStatusDisplayItem.Holder header=headers.size() > 1 && isForQuote ? headers.get(1) : headers.get(0);
if(header!=null) header.bindCollapseButton();
}
}
}

Expand Down

0 comments on commit 9ea48fa

Please sign in to comment.