avoid a crash

This commit is contained in:
Thomas 2022-12-09 15:37:35 +01:00
parent dda3296154
commit 70f9324b8c
1 changed files with 3 additions and 3 deletions

View File

@ -728,11 +728,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
} else if (emojisList == null) {
if (emojis.containsKey(BaseMainActivity.currentInstance)) {
emojisList = emojis.get(BaseMainActivity.currentInstance);
if (emojisList == null) {
return;
}
}
}
if (emojisList == null) {
return;
}
for (Emoji emoji : emojisList) {
if (shortcode != null && emoji.shortcode.contains(shortcode)) {
emojisToDisplay.add(emoji);