Skip to content

Commit

Permalink
Merge pull request #1103 from andnlv/master
Browse files Browse the repository at this point in the history
[Health] Fix NullPointerException when reading NUTRITION
  • Loading branch information
iarata authored Jan 4, 2025
2 parents 22102f4 + 2578bc2 commit 97ad00d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ class HealthPlugin(private var channel: MethodChannel? = null) :
"sugar" to record.sugar?.inGrams,
"water" to null,
"zinc" to record.zinc?.inGrams,
"name" to record.name!!,
"name" to record.name,
"meal_type" to
(mapTypeToMealType[
record.mealType]
Expand Down

0 comments on commit 97ad00d

Please sign in to comment.