-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync: smoother json (fixes #4981) #4983
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deeppp15
approved these changes
Jan 9, 2025
Okuro3499
changed the title
synching: smoother synching (fixes #4981)
syncing: smoother syncing (fixes #4981)
Jan 10, 2025
Okuro3499
requested changes
Jan 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java.lang.NumberFormatException: For input string: ""
at java.lang.Integer.parseInt(Integer.java:800)
at java.lang.Integer.parseInt(Integer.java:908)
at com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:232)
at org.ole.planet.myplanet.utilities.JsonUtils.getInt(JsonUtils.kt:95)
at org.ole.planet.myplanet.model.RealmMyHealthPojo$Companion.insert(RealmMyHealthPojo.kt:73)
at org.ole.planet.myplanet.model.RealmMyHealthPojo.insert(Unknown Source:2)
at java.lang.reflect.Method.invoke(Native Method)
at org.ole.planet.myplanet.service.TransactionSyncManager.callMethod(TransactionSyncManager.kt:222)
at org.ole.planet.myplanet.service.TransactionSyncManager.continueInsert(TransactionSyncManager.kt:186)
at org.ole.planet.myplanet.service.TransactionSyncManager.insertDocs$lambda$14(TransactionSyncManager.kt:171)
at org.ole.planet.myplanet.service.TransactionSyncManager.$r8$lambda$-ZsMIzR4xVuGBBUi9T2EEUzJuII(Unknown Source:0)
at org.ole.planet.myplanet.service.TransactionSyncManager$$ExternalSyntheticLambda0.execute(D8$$SyntheticClass:0)
at io.realm.Realm$1.run(Realm.java:1745)
at io.realm.internal.async.BgPriorityRunnable.run(BgPriorityRunnable.java:34)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
java.lang.NumberFormatException: For input string: ""
at java.lang.Integer.parseInt(Integer.java:800)
at java.lang.Integer.parseInt(Integer.java:908)
at com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:232)
at org.ole.planet.myplanet.utilities.JsonUtils.getInt(JsonUtils.kt:95)
at org.ole.planet.myplanet.model.RealmMyHealthPojo$Companion.insert(RealmMyHealthPojo.kt:94)
at org.ole.planet.myplanet.model.RealmMyHealthPojo.insert(Unknown Source:2)
at java.lang.reflect.Method.invoke(Native Method)
at org.ole.planet.myplanet.service.TransactionSyncManager.callMethod(TransactionSyncManager.kt:222)
at org.ole.planet.myplanet.service.TransactionSyncManager.continueInsert(TransactionSyncManager.kt:186)
at org.ole.planet.myplanet.service.TransactionSyncManager.insertDocs$lambda$14(TransactionSyncManager.kt:171)
at org.ole.planet.myplanet.service.TransactionSyncManager.$r8$lambda$-ZsMIzR4xVuGBBUi9T2EEUzJuII(Unknown Source:0)
at org.ole.planet.myplanet.service.TransactionSyncManager$$ExternalSyntheticLambda0.execute(D8$$SyntheticClass:0)
at io.realm.Realm$1.run(Realm.java:1745)
at io.realm.internal.async.BgPriorityRunnable.run(BgPriorityRunnable.java:34)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
pointing to myHealth?.pulse = JsonUtils.getInt("pulse", act)
Okuro3499
approved these changes
Jan 16, 2025
@pavi38 review this |
dogi
changed the title
syncing: smoother syncing (fixes #4981)
sync: smoother json (fixes #4981)
Jan 17, 2025
dogi
approved these changes
Jan 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #4981