-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix: DeckPicker-NullPointerException in onQueryTextChange #17403
Conversation
Did you manage to reproduce the error? This seems to convert the crash into a bug |
I couldn’t reproduce the crash. Should I add a null check and logging to catch cases where the adapter or filter is unexpectedly null? |
We shouldn't rush to a solution The first step is to understand how the crash occurred, and ideally being able to reproduce it. Once we know this, we'll ideally be able to fix the cause rather than ignore user input Did you check ACRA for a logcat? |
8a8c8a7
to
83cac3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting closer to something that might move this one forward, but needs to go to our ACRA server for it to be seen
83cac3e
to
7427432
Compare
7427432
to
b4729c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I had in mind - doesn't fix the underlying issue but will hopefully get us closer. Thank you
Going to put this one in as well for 2.19.3, it stops the crash but adds logging and doesn't hide it in acra |
Purpose / Description
Fixes NullPointerException in onQueryTextChange by safely casting the adapter to Filterable before calling the filter method, preventing crashes when the adapter is null or not of the correct type.
Fixes
onQueryTextChange
-NullPointerException
onfilter
#17391How Has This Been Tested?
Realme 6 and Emulator
Checklist
Please, go through these checks before submitting the PR.