From d2b7ce39090ff8eae9d05e70542bdf1b010e5f23 Mon Sep 17 00:00:00 2001
From: Thomas <tschneider.ac@gmail.com>
Date: Mon, 25 Jul 2022 16:44:46 +0200
Subject: [PATCH] Fix null value

---
 .../java/app/fedilab/android/ui/drawer/ComposeAdapter.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java
index 0b251999..717d85fe 100644
--- a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java
+++ b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java
@@ -411,6 +411,9 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
      */
     public void addSharing(String url, String title, String description, String subject, String content, String saveFilePath) {
         int position = statusList.size() - 1;
+        if (description == null && content == null) {
+            return;
+        }
         if (title != null || subject != null) {
             statusList.get(position).text = title != null ? title : subject;
             statusList.get(position).text += "\n\n";