GoodieBag / Pinview

A pinview library for android. :sparkles:
MIT License
823 stars 115 forks source link

crash #40

Closed hazem1262 closed 3 years ago

hazem1262 commented 4 years ago

in some devices i had this crash

Fatal Exception: java.lang.NumberFormatException: Invalid int: "" at java.lang.Integer.invalidInt(Integer.java:138) at java.lang.Integer.parseInt(Integer.java:358) at java.lang.Integer.parseInt(Integer.java:334) at com.sabbar.seeker.ibtikar.ui.auth.AuthRepository.doSendOtp(AuthRepository.java:45) at com.sabbar.seeker.ibtikar.ui.auth.AuthViewModel.submitOtpToVerification(AuthViewModel.java:90) at com.sabbar.seeker.ibtikar.ui.auth.OtpCodeFragment$buildOtpCode$1.onDataEntered(OtpCodeFragment.java:132) at com.goodiebag.pinview.Pinview.onTextChanged(Pinview.java:406) at android.widget.TextView.sendOnTextChanged(TextView.java:8636) at android.widget.TextView.handleTextChanged(TextView.java:8701) at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:10914) at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:1061) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:582) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:503) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:39) at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:698) at android.view.inputmethod.BaseInputConnection.commitText(BaseInputConnection.java:204) at com.android.internal.widget.EditableInputConnection.commitText(EditableInputConnection.java:191) at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:295) at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:82) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:210) at android.app.ActivityThread.main(ActivityThread.java:5982) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)