diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index 1e6eb2489a..f4d70b7141 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -852,9 +852,11 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe } override fun onDestroy() { - viewModel.saveDraft(binding.inputBar.text.trim()) - cancelVoiceMessage() - tearDownRecipientObserver() + if(::binding.isInitialized) { + viewModel.saveDraft(binding.inputBar.text.trim()) + cancelVoiceMessage() + tearDownRecipientObserver() + } super.onDestroy() } // endregion