From 11a4de858c75cd6cfcbbf4665f9e6184365e10ce 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 f95042a79..b8ade248a 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(