From ca85044a7bd577b340021561fe9dedbe970c2e8a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 8 Jul 2021 09:21:18 +1000 Subject: [PATCH] Fix crash --- .../securesms/conversation/v2/input_bar/InputBar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt index f10ad10e2b..f310cd019b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt @@ -38,7 +38,7 @@ class InputBar : RelativeLayout, InputBarEditTextDelegate, QuoteViewDelegate, Li set(value) { field = value; showOrHideInputIfNeeded() } var text: String - get() { return inputBarEditText.text.toString() } + get() { return inputBarEditText.text?.toString() ?: "" } set(value) { inputBarEditText.setText(value) } private val attachmentsButton by lazy { InputBarButton(context, R.drawable.ic_plus_24) }