diff --git a/app/src/main/java/org/ole/planet/myplanet/utilities/JsonUtils.kt b/app/src/main/java/org/ole/planet/myplanet/utilities/JsonUtils.kt index 4386a99596..387f26b532 100644 --- a/app/src/main/java/org/ole/planet/myplanet/utilities/JsonUtils.kt +++ b/app/src/main/java/org/ole/planet/myplanet/utilities/JsonUtils.kt @@ -107,7 +107,7 @@ object JsonUtils { return try { if (jsonObject?.has(fieldName) == true) { val el: JsonElement = jsonObject.get(fieldName) - if (el is JsonNull) 0f else el.asFloat + if (el is JsonNull || el.asString.isEmpty()) 0f else el.asFloat } else { getInt(fieldName, jsonObject).toFloat() }