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

java.lang.NumberFormatException: For input string: "HelloWorld": When a user inputs an invalid string, the app should give the user a tip instead of crashing. #996

Open
ceshifunny123 opened this issue Jan 2, 2025 · 0 comments

Comments

@ceshifunny123
Copy link

ceshifunny123 commented Jan 2, 2025

Exception

App Name: Omni-Notes
Version: 6.4.0 (alpha/latest)
User Action: UI Error
Request: Application crash
OS: Linux Android 11 - 30
Device: Google Nexus 4
Expected behavior: When a user inputs an invalid string, the app should give the user a tip instead of crashing.

crash log
FATAL EXCEPTION: main
Process: it.feio.android.omninotes.alpha, PID: 6000
java.lang.NumberFormatException: For input string: "HelloWorld"
        at java.lang.Long.parseLong(Long.java:594)
        at java.lang.Long.parseLong(Long.java:636)
        at it.feio.android.omninotes.DetailFragment.lambda$takeVideo$25(DetailFragment.java:1365)
        at it.feio.android.omninotes.DetailFragment.$r8$lambda$dgoc9NUZ3c6JPMEVxyjCwxRtlMs(Unknown Source:0)
        at it.feio.android.omninotes.DetailFragment$$ExternalSyntheticLambda4.onPermissionGranted(D8$$SyntheticClass:0)
        at it.feio.android.omninotes.helpers.PermissionsHelper.requestPermission(PermissionsHelper.java:59)
        at it.feio.android.omninotes.DetailFragment.takeVideo(DetailFragment.java:1352)
        at it.feio.android.omninotes.DetailFragment.-$$Nest$mtakeVideo(Unknown Source:0)
        at it.feio.android.omninotes.DetailFragment$AttachmentOnClickListener.onClick(DetailFragment.java:2343)
        at android.view.View.performClick(View.java:7448)
        at android.view.View.performClickInternal(View.java:7425)
        at android.view.View.access$3600(View.java:810)
        at android.view.View$PerformClick.run(View.java:28305)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
@ceshifunny123 ceshifunny123 changed the title when user incorrectly input a invalid string, the app should give user a tips instead of crash. java.lang.NumberFormatException: For input string: "HelloWorld" when a user input an invalid string, the app should give user a tip instead of crash. Jan 2, 2025
@ceshifunny123 ceshifunny123 changed the title when a user input an invalid string, the app should give user a tip instead of crash. java.lang.NumberFormatException: For input string: "HelloWorld": When a user inputs an invalid string, the app should give the user a tip instead of crashing. Jan 2, 2025
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

No branches or pull requests

1 participant