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

FloatingDecimal.readJavaFormatString: NumberTaskFragment #2921

Open
anandwana001 opened this issue Dec 12, 2024 · 0 comments
Open

FloatingDecimal.readJavaFormatString: NumberTaskFragment #2921

anandwana001 opened this issue Dec 12, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@anandwana001
Copy link
Collaborator

anandwana001 commented Dec 12, 2024

Surveyidd - Y2Y45SfIjkYlKJS7Ujy9

 Fatal Exception: java.lang.NumberFormatException: For input string: "."
       at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
       at jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
       at java.lang.Double.parseDouble(Double.java:662)
       at com.google.android.ground.model.submission.NumberTaskData.getValue(NumberTaskData.kt:24)
       at com.google.android.ground.persistence.local.room.converter.ValueJsonConverter.toJsonObject(ValueJsonConverter.kt:50)
       at com.google.android.ground.persistence.local.room.converter.SubmissionDeltasConverter.toString(SubmissionDeltasConverter.kt:46)
       at com.google.android.ground.persistence.local.room.converter.ConverterExtKt.toLocalDataStoreObject(ConverterExt.kt:500)
       at com.google.android.ground.persistence.local.room.stores.RoomSubmissionStore.saveDraftSubmission(RoomSubmissionStore.kt:266)
       at com.google.android.ground.repository.SubmissionRepository.saveDraftSubmission(SubmissionRepository.kt:89)
       at com.google.android.ground.ui.datacollection.DataCollectionViewModel$saveDraft$1.invokeSuspend(DataCollectionViewModel.kt:284)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
        
@anandwana001 anandwana001 added the type: bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant