Fix crash when loading wheelchairs

This commit is contained in:
Phillip Thelen 2020-03-23 17:08:46 +01:00
parent 944493652e
commit 36ccb21bb6

View file

@ -94,7 +94,7 @@ open class Preferences : RealmObject(), AvatarPreferences {
override fun getChair(): String? {
return if (chair != null && chair != "none") {
if (chair?.substring(0, 6) == "chair_") {
if (chair?.contains("chair_") == true) {
chair
} else {
"chair_" + chair!!