From 524fb7dd2a17e1373b6ae3b29c4833fd4758d7d0 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 24 Mar 2025 07:32:43 +0100 Subject: [PATCH] Fix a crash when animating a custom emoji --- .../java/app/fedilab/android/mastodon/helper/CustomEmoji.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/helper/CustomEmoji.java b/app/src/main/java/app/fedilab/android/mastodon/helper/CustomEmoji.java index 707bb309..69e02ad7 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/helper/CustomEmoji.java +++ b/app/src/main/java/app/fedilab/android/mastodon/helper/CustomEmoji.java @@ -106,7 +106,9 @@ public class CustomEmoji extends ReplacementSpan { if (drawableCallBack != null) { drawableCallBack.invalidateDrawable(drawable); } - view.invalidate(); + if(view != null) { + view.invalidate(); + } } @Override