Skip to content

Commit f1df900

Browse files
committed
crash fix when click on empty comment
1 parent 8a62c21 commit f1df900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void updateFromItem(final InfoItem infoItem,
142142
}
143143

144144
itemView.setOnClickListener(view -> {
145-
if (!itemContentView.getText().toString().isEmpty()) {
145+
if (itemContentView.getText() != null) {
146146
toggleEllipsize();
147147
}
148148
if (itemBuilder.getOnCommentsSelectedListener() != null) {

0 commit comments

Comments
 (0)