Commit 70783bb5 authored by Thomas's avatar Thomas
Browse files

Fix a crash when composing

parent 413d11b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1589,7 +1589,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
                if (!mentionsAtTop) {
                    holder.binding.content.setSelection(statusDraft.cursorPosition);
                } else {
                    if (capitalize && !statusDraft.text.endsWith("\n")) {
                    if (capitalize && statusDraft.text != null && !statusDraft.text.endsWith("\n")) {
                        statusDraft.text += "\n";
                        holder.binding.content.setText(statusDraft.text);
                    }