Prevent crash

This commit is contained in:
M66B 2020-02-05 16:26:46 +01:00
parent 56edd265d6
commit 199f377951
1 changed files with 2 additions and 1 deletions

View File

@ -920,7 +920,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
keywords.append(message.keywords[i]); keywords.append(message.keywords[i]);
if (message.keyword_colors[i] != null) { if (message.keyword_colors != null &&
message.keyword_colors[i] != null) {
int len = keywords.length(); int len = keywords.length();
keywords.setSpan( keywords.setSpan(
new ForegroundColorSpan(message.keyword_colors[i]), new ForegroundColorSpan(message.keyword_colors[i]),