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

GitHub | jlmalone | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Null Pointer Exception on LayoutManager.getAnchorAtEnd

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

    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.layoutChildren
      1. com.tonicartos.superslim.LayoutManager.getAnchorAtEnd(SourceFile:1038)
      2. com.tonicartos.superslim.LayoutManager.fillNextSectionToEnd(SourceFile:725)
      3. com.tonicartos.superslim.LayoutManager.layoutChildren(SourceFile:3369)
      3 frames