From 29b4d7aa7733d1cb2157caafc63c59842500d12c Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 9 Feb 2020 22:34:44 +0100 Subject: [PATCH] fix crash when opening Poll dialog and instanceParams are null (#1668) --- .../keylesspalace/tusky/components/compose/ComposeViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt index f95042a7..b8ade248 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt @@ -62,7 +62,7 @@ class ComposeViewModel private var inReplyToId: String? = null private var startingVisibility: Status.Visibility = Status.Visibility.UNKNOWN - private val instance: MutableLiveData = MutableLiveData() + private val instance: MutableLiveData = MutableLiveData(null) val instanceParams: LiveData = instance.map { instance -> ComposeInstanceParams(