From 745de828bb67daf5e54f3d88e047c42a67b92236 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 31 Jul 2022 11:21:49 +0200 Subject: [PATCH] Fix issue #287 - crash with deleting / redrafting a reply --- .../java/app/fedilab/android/activities/ComposeActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java index 3ab1657bb..0b228b8f2 100644 --- a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java @@ -386,7 +386,9 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana }); } else { - composeAdapter.addSharing(null, null, sharedDescription, null, sharedContent, null); + if (composeAdapter != null) { + composeAdapter.addSharing(null, null, sharedDescription, null, sharedContent, null); + } } }