Skip to content
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

syncing: smoother syncing (fixes #4981) #4983

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Avinash-Codes
Copy link
Member

fixes #4981

@Avinash-Codes Avinash-Codes linked an issue Jan 9, 2025 that may be closed by this pull request
@Okuro3499 Okuro3499 changed the title synching: smoother synching (fixes #4981) syncing: smoother syncing (fixes #4981) Jan 10, 2025
Copy link
Collaborator

@Okuro3499 Okuro3499 left a 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.NumberFormatException
3 participants