-
Notifications
You must be signed in to change notification settings - Fork 25
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
App stops responding when Search is don #1
Comments
Can you check the Internet connection? I can replicate the issue by using the device on Airplane mode. |
Fix for the crash |
I have checked the internet connection. Tried both wifi and network. I did notice in the log cat that the "handshake" failed. |
Can you post the complete logcat |
|
Can you provide me the following details Device |
Sure, |
I tried with Galaxy S6 Android 6.0.1 works fine and other Android 7.1 devices which work fine. |
Hello, I ran the app in the emulator with all my virtual devices and it displayed a list from json. But running it again on a real device the list does not display. |
Just a side note, I have an application that uses json to populate a listview and it returns the list. |
Have you modified any code? I will try to check on a Galaxy S7 if possible |
I have not. Just forked, compiled and ran the code.
…On Mar 27, 2017 10:31 AM, "Raj Amal" ***@***.***> wrote:
Have you modified any code?
I will try to check on a Galaxy S7 if possible
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFo3Ytrq8PvC4l5cWTSGW5CaNA3XT6Qxks5rp-DBgaJpZM4MiCaD>
.
|
I just ran across this when lazy loading items. For example, when using background operations. The adapter is first created with an empty list. Then when background operations complete, data is sent to the adapter. On first run through the adapter, the list is empty so there is a null pointer exception in onBindViewHolder. Method calls there (and possible elsewhere) should do null checks. Perhaps the search method is firing before the adapter is initialized or loaded with data. |
Any solution for this. Me too facing same problem. |
When the application comes up, the list is blank. When you tap on the search icon, the app stops and closes.
NullPointerException: Attempt to invoke virtual method 'android.widget.Filter com.learn2crack.recyclerviewsearch.DataAdapter.getFilter()' on a null object reference
at com.learn2crack.recyclerviewsearch.MainActivity$2.onQueryTextChange(MainActivity.java:101)
The text was updated successfully, but these errors were encountered: