fix crash when opening Poll dialog and instanceParams are null (#1668)

This commit is contained in:
Konrad Pozniak 2020-02-09 22:34:44 +01:00 committed by GitHub
parent 5324258c2e
commit 11a4de858c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class ComposeViewModel
private var inReplyToId: String? = null
private var startingVisibility: Status.Visibility = Status.Visibility.UNKNOWN
private val instance: MutableLiveData<InstanceEntity?> = MutableLiveData()
private val instance: MutableLiveData<InstanceEntity?> = MutableLiveData(null)
val instanceParams: LiveData<ComposeInstanceParams> = instance.map { instance ->
ComposeInstanceParams(