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

NumberFormatException #286

Open
ape-report opened this issue Mar 31, 2018 · 0 comments
Open

NumberFormatException #286

ape-report opened this issue Mar 31, 2018 · 0 comments

Comments

@ape-report
Copy link

parseDouble will throw an exception if the input string is illegal.
For example, set an empty value for an upper limit in Alarm Settings.

03-30 23:14:03.244 27062 27062 D AndroidRuntime: Shutting down VM
03-30 23:14:03.244 27062 27062 E AndroidRuntime: FATAL EXCEPTION: main
03-30 23:14:03.244 27062 27062 E AndroidRuntime: Process: mobi.boilr.boilr, PID: 27062
03-30 23:14:03.244 27062 27062 E AndroidRuntime: java.lang.NumberFormatException: Invalid double: ""
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at java.lang.StringToReal.invalidReal(StringToReal.java:63)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at java.lang.StringToReal.parseDouble(StringToReal.java:267)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at java.lang.Double.parseDouble(Double.java:301)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at mobi.boilr.boilr.views.fragments.PriceHitAlarmSettingsFragment$OnPriceHitSettingsPreferenceChangeListener.onPreferenceChange(PriceHitAlarmSettingsFragment.java:25)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.preference.Preference.callChangeListener(Preference.java:939)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.preference.EditTextPreference.onDialogClosed(EditTextPreference.java:145)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.preference.DialogPreference.onDismiss(DialogPreference.java:395)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1323)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5417)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-30 23:14:03.244 27062 27062 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-30 23:14:03.246   778  4442 W ActivityManager:   Force finishing activity mobi.boilr.boilr/.activities.AlarmSettingsActivity

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