mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-09 13:58:45 +00:00
Fix error loading user data
This commit is contained in:
parent
c513e63907
commit
55feea9dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class SocialAuthenticationDeserializer : JsonDeserializer<SocialAuthentication>
|
|||
override fun deserialize(json: JsonElement, typeOfT: Type, context: JsonDeserializationContext): SocialAuthentication {
|
||||
val authentication = SocialAuthentication()
|
||||
val obj = json.asJsonObject
|
||||
if (obj.has("emails")) {
|
||||
if (obj.has("emails") && obj.get("emails").isJsonArray) {
|
||||
val emailJson = obj.getAsJsonArray("emails")
|
||||
for (entry in emailJson) {
|
||||
if (entry.isJsonPrimitive) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue