java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference

GitHub | 4xes | 6 months ago
  1. 0

    Crash when adding "Belgium" in section example

    GitHub | 6 months ago | 4xes
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
  2. 0

    GitHub comment 155#193146756

    GitHub | 9 months ago | mobiRic
    java.lang.NullPointerException
  3. 0

    GitHub comment 1930#249950983

    GitHub | 2 months ago | Valodim
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 155#227086010

    GitHub | 6 months ago | GaganKainth
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference

    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 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference

      at com.tonicartos.superslim.LayoutManager.getAnchorAtEnd()
    2. com.tonicartos.superslim
      LayoutManager.onLayoutChildren
      1. com.tonicartos.superslim.LayoutManager.getAnchorAtEnd(LayoutManager.java:1038)
      2. com.tonicartos.superslim.LayoutManager.fillNextSectionToEnd(LayoutManager.java:725)
      3. com.tonicartos.superslim.LayoutManager.layoutChildren(LayoutManager.java:1369)
      4. com.tonicartos.superslim.LayoutManager.onLayoutChildren(LayoutManager.java:276)
      4 frames
    3. Android v7
      RecyclerView$1.run
      1. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
      2. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
      3. android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1482)
      4. android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147)
      5. android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:294)
      5 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      2. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      3. android.view.Choreographer.doFrame(Choreographer.java:603)
      4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:148)
      8. android.app.ActivityThread.main(ActivityThread.java:5417)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames