java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference

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

    How to add a custom list view to AlertDialog in android?

    Stack Overflow | 7 months ago | Tom Finet
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference

      at com.hb.birthpay.adapter.FriendOptionsAdapter.getView()
    2. com.hb.birthpay
      FriendOptionsAdapter.getView
      1. com.hb.birthpay.adapter.FriendOptionsAdapter.getView(FriendOptionsAdapter.java:67)
      1 frame