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

main
Konrad Pozniak 5 years ago committed by GitHub
parent fe62748f39
commit 29b4d7aa77
  1. 2
      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<InstanceEntity?> = MutableLiveData()
private val instance: MutableLiveData<InstanceEntity?> = MutableLiveData(null)
val instanceParams: LiveData<ComposeInstanceParams> = instance.map { instance ->
ComposeInstanceParams(

Loading…
Cancel
Save