java.lang.NullPointerException

Attempt to invoke virtual method 'android.widget.Filter com.github.brnmb.amounty.adapter.AmountyAdapter.getFilter()' on a null object reference

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21070

  • via GitHub by brnmb
    , 6 months ago
    Attempt to invoke virtual method 'android.widget.Filter com.github.brnmb.amounty.adapter.AmountyAdapter.getFilter()' on a null object reference
  • via GitHub by MerveGencer
    , 10 months ago
    Attempt to invoke virtual method 'void android.widget.Filter.filter(java.lang.CharSequence, android.widget.Filter$FilterListener)' on a null object reference
  • Attempt to invoke virtual method 'void android.widget.Filter.filter(java.lang.CharSequence, android.widget.Filter$FilterListener)' on a null object reference
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.