Skip to content
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

Crash o Search #3

Open
brnmb opened this issue May 16, 2016 · 1 comment
Open

Crash o Search #3

brnmb opened this issue May 16, 2016 · 1 comment
Assignees
Labels

Comments

@brnmb
Copy link
Owner

brnmb commented May 16, 2016

No description provided.

@brnmb brnmb added the bug label May 16, 2016
@brnmb brnmb self-assigned this May 16, 2016
@brnmb
Copy link
Owner Author

brnmb commented May 16, 2016

If the adpter is empty the text input on seachview will crash the app

Process: com.github.brnmb.amounty, PID: 8111 java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.Filter com.github.brnmb.amounty.adapter.AmountyAdapter.getFilter()' on a null object reference at com.github.brnmb.amounty.view.MainFragment.filter(MainFragment.java:144) at com.github.brnmb.amounty.view.MainActivity$1.onQueryTextChange(MainActivity.java:101) at android.support.v7.widget.SearchView.onTextChanged(SearchView.java:1150) at android.support.v7.widget.SearchView.access$2000(SearchView.java:103) at android.support.v7.widget.SearchView$12.onTextChanged(SearchView.java:1680) at android.widget.TextView.sendOnTextChanged(TextView.java:8976) at android.widget.TextView.handleTextChanged(TextView.java:9073) at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:11577) at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:968) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:519) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:456) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:33) at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:691) at android.view.inputmethod.BaseInputConnection.commitText(BaseInputConnection.java:199) at com.android.internal.widget.EditableInputConnection.commitText(EditableInputConnection.java:184) at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:286) at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5951) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant