Skip to content

Commit

Permalink
synching: smoother synching (fixes #4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinash-Codes committed Jan 9, 2025
1 parent 516a848 commit 0caf4e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 0caf4e4

Please sign in to comment.