Fixed
Status Update
Comments
fe...@google.com <fe...@google.com> #2
This is fixed in a future release.
am...@google.com <am...@google.com>
yo...@gmail.com <yo...@gmail.com> #3
Future version of the support lib?
fe...@google.com <fe...@google.com> #4
No, platform.
yo...@gmail.com <yo...@gmail.com> #5
It would be nice to have a fix/workaround in support lib...
ha...@gmail.com <ha...@gmail.com> #6
fe...@google.com <fe...@google.com> #7
This is fixed on Android 8.1
Description
We have noticed a crash in our instrumentation and manual testing with Android O that seems to stem from the system / support libs.
Steps to reproduce:
(Note: not yet fully clear what causes the issue)
Create a view with text-watchers/addTextChangedListener and OnEditorActionListener, while gaining focus/loosing it app crashes. It is not 100% reproducible.
I've found this bug but it is marked as fixed, sadly I think there is a regression that has snuck in there somewhere.
Technical info:
Devices/Android versions reproduced on:
Google Pixel Phone, Android 8.0.0 Build Number: OPR6.170623.012
or
Emulator (26.1.0) running on Android O image
Android Studio 3.0 Beta 4
buildTools : '26.0.1',
compileSdk : 26,
javaVersion: 1_8,
minSdk : 16,
targetSdk : 26
com.android.support:appcompat-v7:26.0.1
FATAL EXCEPTION: main
Process: com.packagename.something
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getBoundsOnScreen(android.graphics.Rect)' on a null object reference
at android.app.assist.AssistStructure$WindowNode.<init>(AssistStructure.java:486)
at android.app.assist.AssistStructure.<init>(AssistStructure.java:1912)
at android.app.ActivityThread.handleRequestAssistContextExtras(ActivityThread.java:3035)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1807)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Let me know if you need more info.