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 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Null Pointer Exception while doing filter method

    Stack Overflow | 7 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