java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.apple.qs.Activity.db.model.Contact.getNameOrNumber()' on a null object reference

Stack Overflow | Apple Tan | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Null Pointer Exception while doing filter method

    Stack Overflow | 9 months ago | Apple Tan
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.apple.qs.Activity.db.model.Contact.getNameOrNumber()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String com.example.apple.qs.Activity.db.model.Contact.getNameOrNumber()' on a null object reference

      at com.example.apple.qs.Activity.adapter.MessageListAdapter$ItemFilter.performFiltering()
    2. com.example.apple
      MessageListAdapter$ItemFilter.performFiltering
      1. com.example.apple.qs.Activity.adapter.MessageListAdapter$ItemFilter.performFiltering(MessageListAdapter.java:207)
      1 frame