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 #315

Open
tianxiaogu opened this Issue Jul 13, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@tianxiaogu

tianxiaogu commented Jul 13, 2018

A trivial bug. Integer.valueOf should handle digit sequence representing a very large number.

// java.lang.NumberFormatException: Invalid int: "5582158130"
// 	at java.lang.Integer.invalidInt(Integer.java:138)
// 	at java.lang.Integer.parse(Integer.java:413)
// 	at java.lang.Integer.parseInt(Integer.java:367)
// 	at java.lang.Integer.parseInt(Integer.java:334)
// 	at java.lang.Integer.valueOf(Integer.java:525)
// 	at org.linphone.SettingsFragment$35.onPreferenceChange(SettingsFragment.java:1041)
// 	at android.preference.Preference.callChangeListener(Preference.java:939)
// 	at android.preference.EditTextPreference.onDialogClosed(EditTextPreference.java:145)
// 	at android.preference.DialogPreference.onDismiss(DialogPreference.java:395)
// 	at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1323)
// 	at android.os.Handler.dispatchMessage(Handler.java:102)
// 	at android.os.Looper.loop(Looper.java:148)
// 	at android.app.ActivityThread.main(ActivityThread.java:5417)
// 	at java.lang.reflect.Method.invoke(Native Method)
// 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
// 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment