-
Notifications
You must be signed in to change notification settings - Fork 1k
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
NullPointerException on Layout.getLineForOffset(int) Editor.java file #393
Comments
@jyotisakhareNira inputType is email? try https://gist.github.com/olegsvs/b86b43d317a751f77fba683e892ad787 |
@olegsvs Yes. Were you able to reproduce the issue? |
Yes, analog crash report on xiaomi with miui based on android 10 on focus on edittext with email inputType |
@olegsvs will include this fix for my next release and let you know whether it worked. |
@olegsvs Can you please help with the steps to reproduce this issue? |
Focus on edittext with textEmailAddress input type. |
@jyotisakhareNira has fixed it? |
@choha I have replaced it with normal TextInputLayout for Email fields |
we used AppCompatEditText ,when input email also crash |
Recently migrated the project to AndroidX and below crash is happening only on Android 10 Xiaomi phones.
Please help
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getLineForOffset(int)' on a null object reference at android.widget.Editor$ActionPinnedPopupWindow.computeLocalPosition(Editor.java:3255) at android.widget.Editor$PinnedPopupWindow.show(Editor.java:3577) at android.widget.Editor$ActionPinnedPopupWindow.show(Editor.java:3420) at android.widget.Editor$EmailAddPopupWindow.show(Editor.java:4944) at android.widget.Editor$1.run(Editor.java:1485) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7509) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
The text was updated successfully, but these errors were encountered: