java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getLeft()' on a null object reference

GitHub | 13588823551 | 8 months 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

    GitHub comment 6#245807742

    GitHub | 8 months ago | 13588823551
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getLeft()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int android.view.View.getLeft()' on a null object reference

      at com.oushangfeng.pinnedsectionitemdecoration.PinnedHeaderItemDecoration.createPinnedHeader()
    2. com.oushangfeng.pinnedsectionitemdecoration
      PinnedHeaderItemDecoration.onDraw
      1. com.oushangfeng.pinnedsectionitemdecoration.PinnedHeaderItemDecoration.createPinnedHeader(PinnedHeaderItemDecoration.java:376)
      2. com.oushangfeng.pinnedsectionitemdecoration.PinnedHeaderItemDecoration.onDraw(PinnedHeaderItemDecoration.java:143)
      2 frames
    3. Android v7
      RecyclerView.onDraw
      1. android.support.v7.widget.RecyclerView.onDraw(RecyclerView.java:3608)
      1 frame