java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

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

    ListView is null, why?

    Stack Overflow | 8 months ago | Tom Finet
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

      at com.hb.birthpay.fragment.FindFriendFragment.onCreateView()
    2. com.hb.birthpay
      FindFriendFragment.onCreateView
      1. com.hb.birthpay.fragment.FindFriendFragment.onCreateView(FindFriendFragment.java:66)
      1 frame