Fix a crash when composing

This commit is contained in:
Thomas 2023-02-07 15:34:14 +01:00
parent 413d11b3c3
commit 70783bb532
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}