java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.Filter android.widget.ArrayAdapter.getFilter()' on a null object reference

Stack Overflow | Lá Dối Trá | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 1

    Error SeachView filter android

    Stack Overflow | 6 months ago | Lá Dối Trá
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.Filter android.widget.ArrayAdapter.getFilter()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.widget.Filter android.widget.ArrayAdapter.getFilter()' on a null object reference

      at com.example.trung.flashcardenglish.ielts.Ielts.onQueryTextChange()
    2. com.example.trung
      Ielts.onQueryTextChange
      1. com.example.trung.flashcardenglish.ielts.Ielts.onQueryTextChange(Ielts.java:244)
      1 frame
    3. Android v7
      SearchView$12.onTextChanged
      1. android.support.v7.widget.SearchView.onTextChanged(SearchView.java:1150)
      2. android.support.v7.widget.SearchView.access$2000(SearchView.java:103)
      3. android.support.v7.widget.SearchView$12.onTextChanged(SearchView.java:1680)
      3 frames
    4. Android Platform
      TextView.setText
      1. android.widget.TextView.sendOnTextChanged(TextView.java:7679)
      2. android.widget.TextView.setText(TextView.java:4060)
      2 frames