From 6f7756a34e95c7b117fe4b925dab09c382cd4d23 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 23 Aug 2022 14:38:24 +0200 Subject: [PATCH] prevent NPE if UI has already been teared down Resolves #2321 Signed-off-by: Andy Scherzinger --- .../main/java/com/nextcloud/talk/controllers/ChatController.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt index 9c280953a..51746d841 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt @@ -355,9 +355,8 @@ class ChatController(args: Bundle) : conversationUser ) - setupSwipeToReply() - try { + setupSwipeToReply() setupMentionAutocomplete() checkShowCallButtons() checkShowMessageInputView()