diff --git a/src/status/profile/profile.nim b/src/status/profile/profile.nim index 3459ac5c91..0b75d49b38 100644 --- a/src/status/profile/profile.nim +++ b/src/status/profile/profile.nim @@ -53,7 +53,8 @@ proc toProfileModel*(profile: JsonNode): Profile = if profile.hasKey("localNickname"): result.localNickname = profile["localNickname"].str - if profile.hasKey("images"): + + if profile.hasKey("images") and profile["images"].kind != JNull: if profile["images"].hasKey("thumbnail"): result.identityImage.thumbnail = profile["images"]["thumbnail"]["uri"].str if profile["images"].hasKey("large"):