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: App crashed when I input dots(fraction) in the section to add schedule. #86

Closed
darewealth opened this issue Jun 26, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@darewealth
Copy link

Describe the bug.

I was trying to add a new schedule on the app and I decided to play around it. I click on schedule and I clicked on add new schedule. Then I used dot in the 'from and to' column, then the app crashed.

Steps to reproduce.

  • Launch the app.

  • Click on menu icon

  • Click on the + icon and click on the new schedule

  • Then input dot in from date to date

  • Click the mark icon

  • And note the bug

Expected Behaviour

I expect to get information that I should enter normal figures and not a crash.

Screen recording.

https://youtu.be/xVJvuwfOmb8

Devices and Versions.

Device: [Gionee X1]

Version [7.0]

App version [2.5]

Log

{"additionalMessage":"java.lang.NumberFormatException: For input string: \".\"\n\tat java.lang.Integer.parseInt(Integer.java:510)\n\tat java.lang.Integer.parseInt(Integer.java:556)\n\tat me.anon.grow.fragment.ScheduleDateDetailsFragment$onActivityCreated$7.onClick(ScheduleDateDetailsFragment.kt:113)\n\tat android.view.View.performClick(View.java:5690)\n\tat android.view.View$PerformClick.run(View.java:22693)\n\tat android.os.Handler.handleCallback(Handler.java:836)\n\tat android.os.Handler.dispatchMessage(Handler.java:103)\n\tat android.os.Looper.loop(Looper.java:203)\n\tat android.app.ActivityThread.main(ActivityThread.java:6269)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)\n\r\n","exception":{"detailMessage":"For input string: \".\"","stackTrace":[{"declaringClass":"java.lang.Integer","fileName":"Integer.java","lineNumber":510,"methodName":"parseInt"},{"declaringClass":"java.lang.Integer","fileName":"Integer.java","lineNumber":556,"methodName":"parseInt"},{"declaringClass":"me.anon.grow.fragment.ScheduleDateDetailsFragment$onActivityCreated$7","fileName":"ScheduleDateDetailsFragment.kt","lineNumber":113,"methodName":"onClick"},{"declaringClass":"android.view.View","fileName":"View.java","lineNumber":5690,"methodName":"performClick"},{"declaringClass":"android.view.View$PerformClick","fileName":"View.java","lineNumber":22693,"methodName":"run"},{"declaringClass":"android.os.Handler","fileName":"Handler.java","lineNumber":836,"methodName":"handleCallback"},{"declaringClass":"android.os.Handler","fileName":"Handler.java","lineNumber":103,"methodName":"dispatchMessage"},{"declaringClass":"android.os.Looper","fileName":"Looper.java","lineNumber":203,"methodName":"loop"},{"declaringClass":"android.app.ActivityThread","fileName":"ActivityThread.java","lineNumber":6269,"methodName":"main"},{"declaringClass":"java.lang.reflect.Method","fileName":"Method.java","lineNumber":-2,"methodName":"invoke"},{"declaringClass":"com.android.internal.os.ZygoteInit$MethodAndArgsCaller","fileName":"ZygoteInit.java","lineNumber":1063,"methodName":"run"},{"declaringClass":"com.android.internal.os.ZygoteInit","fileName":"ZygoteInit.java","lineNumber":924,"methodName":"main"}],"suppressedExceptions":[]},"manufacturer":"GIONEE","model":"X1","osVersion":"7.0","packageName":"me.anon.grow","timestamp":1561560599299,"version":"2.5","versionCode":"21"}

@7LPdWcaW 7LPdWcaW self-assigned this Jun 26, 2019
@7LPdWcaW 7LPdWcaW added the bug label Jun 26, 2019
@7LPdWcaW 7LPdWcaW added this to the v2.6 milestone Jun 26, 2019
7LPdWcaW added a commit that referenced this issue Aug 8, 2019
Merge branch 'fix/shedule-date' into develop

* fix/shedule-date:
  Adds save int parse for to/from date and changes input type to signed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants