java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference

Stack Overflow | Mallika | 4 months ago
  1. 0

    LayoutManager - Null pointer exception when setting RecyclerView to ListVIew header

    Stack Overflow | 4 months ago | Mallika
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference
  2. 0

    Recyclerview onMeasure java null pointer exception even though there is no recyclerview

    Stack Overflow | 1 year ago | Aditya Kiran
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference
  3. 0

    mobile: loading libgojni.so prevents android errors from printing to logcat

    GitHub | 2 years ago | dskinner
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App crashing when trying to use RecyclerView on android 5.0

    Stack Overflow | 2 years ago | Joe
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference
  6. 0

    RecyclerVIew adapter - passing values in adapter - onClickListener

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference

  1. mukky 6 times, last 4 months ago
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView$LayoutManager.onMeasure(android.support.v7.widget.RecyclerView$Recycler, android.support.v7.widget.RecyclerView$State, int, int)' on a null object reference

    at android.support.v7.widget.RecyclerView.onMeasure()
  2. Android v7
    RecyclerView.onMeasure
    1. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:1764)
    1 frame
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.measure(View.java:17565)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    6. android.view.View.measure(View.java:17565)
    7. android.widget.ListView.setupChild(ListView.java:1944)
    8. android.widget.ListView.makeAndAddView(ListView.java:1867)
    9. android.widget.ListView.fillDown(ListView.java:698)
    10. android.widget.ListView.fillFromTop(ListView.java:759)
    11. android.widget.ListView.layoutChildren(ListView.java:1659)
    12. android.widget.AbsListView.onLayout(AbsListView.java:2151)
    13. android.view.View.layout(View.java:15689)
    14. android.view.ViewGroup.layout(ViewGroup.java:5040)
    14 frames
  4. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:581)
    1 frame