Skip to content

Commit

Permalink
(fix) StickyHeaderTableView: crash on certains starting (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
refnil authored May 20, 2024
1 parent df841e1 commit d54e55c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ private void updateMaxWidthHeightOfCell() {
if (str.indexOf("\n") != -1) {
String[] split = str.split("\n");

if (split[0].length() >= split[1].length()) {
// split.length == 1 handle the case when str has only 1 \n and it is at the end.
if (split.length == 1 || split[0].length() >= split[1].length()) {
str = split[0];
} else {
str = split[1];
Expand Down

0 comments on commit d54e55c

Please sign in to comment.