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

[BUG]: Fatal Exception in collect activity if using percent trait that was imported without min or max #1126

Open
bellerbrock opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1127
Labels

Comments

@bellerbrock
Copy link
Collaborator

Description

2024-12-18 12:40:42.576 4502-4502 AndroidRuntime com.fieldbook.tracker.debug E FATAL EXCEPTION: main Process: com.fieldbook.tracker.debug, PID: 4502 java.lang.RuntimeException: Unable to resume activity {com.fieldbook.tracker.debug/com.fieldbook.tracker.activities.CollectActivity}: java.lang.NumberFormatException: For input string: "" at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4757) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4790) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7839) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.Integer.parseInt(Integer.java:627) at java.lang.Integer.parseInt(Integer.java:650) at com.fieldbook.tracker.traits.PercentTraitLayout.afterLoadExists(PercentTraitLayout.java:147) at com.fieldbook.tracker.traits.BaseTraitLayout.loadLayout(BaseTraitLayout.java:143) at com.fieldbook.tracker.traits.PercentTraitLayout.loadLayout(PercentTraitLayout.java:97) at com.fieldbook.tracker.views.TraitBoxView.loadLayout(TraitBoxView.kt:224) at com.fieldbook.tracker.views.TraitBoxView.initTraitType(TraitBoxView.kt:168) at com.fieldbook.tracker.activities.CollectActivity.initWidgets(CollectActivity.java:741) at com.fieldbook.tracker.activities.CollectActivity.moveToResultCore(CollectActivity.java:855) at com.fieldbook.tracker.activities.CollectActivity.moveToSearch(CollectActivity.java:829) at com.fieldbook.tracker.activities.CollectActivity.onResume(CollectActivity.java:1005) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1476) at android.app.Activity.performResume(Activity.java:8191) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4747)

Expected behavior

No response

Field Book version

6.0.2

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

Successfully merging a pull request may close this issue.

1 participant