diff --git a/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt index 7fd9b976..efeb0316 100644 --- a/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt @@ -69,7 +69,7 @@ class AccountViewModel @Inject constructor( override fun onResponse(call: Call>, response: Response>) { val relationships = response.body() - if (response.isSuccessful && relationships != null) { + if (response.isSuccessful && relationships != null && relationships.getOrNull(0) != null) { val relationship = relationships[0] relationshipData.postValue(Success(relationship)) } else {