crash if set wrong time
project reposiitories
https://github.com/daktak/afh_downloader
expected behavior
when the user set the download time should this application still can work if the time is changed incorrectly.
actual behavior
when a user types a letter in the timing section, this app crashes and can no longer be used.
how to reproduce
- download afh downloader from this link https://f-droid.org/packages/org.afhdownloader/
- after app is installed. launch the app
- click the three dots in the top right of the app
- go to setting options
- activate daily download
- click in hours section write one letter
-clik okey and minimize the app - and then re-open the app and note the bug
browser: afh downloader v 0.6.4
devie : android 5.1 idos
bug recording
logcat file to help dev to fix it
Process: org.afhdownloader, PID: 26431
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.afhdownloader/org.afhdownloader.MainActivity}: java.lang.NumberFormatException: Invalid int: "3@"
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2367)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2429)
at android.app.ActivityThread.access$800(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5376)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.lang.NumberFormatException: Invalid int: "3@"
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parse(Integer.java:410)
at java.lang.Integer.parseInt(Integer.java:367)
at java.lang.Integer.parseInt(Integer.java:334)
at org.afhdownloader.MainActivity.setRecurringAlarm(MainActivity.java:143)
at org.afhdownloader.MainActivity.setAlarm(MainActivity.java:131)
at org.afhdownloader.MainActivity.onCreate(MainActivity.java:115)
at android.app.Activity.performCreate(Activity.java:6012)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311)
... 10 more```
Hello! Thank you for reporting the issue, it should be useful for the project owner.
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Hey @muhammadarif
Thanks for contributing on Utopian.
We're already looking forward to your next contribution!
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Here are your recent posts:
Brought to you by Recent posts widget by @techstack