java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference

GitHub | Lerist | 9 months ago
  1. 0

    itemCount==0 的时候发生NullPointerException, 希望可以解决一下, 谢谢Thanks

    GitHub | 9 months ago | Lerist
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
  2. 0
    samebug tip
    Initialize the variable before calling a method on it.
  3. 0
    samebug tip
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Use 'dialog' to access views from custom_layout layout.
  6. 0

    App crashes on image capture

    GitHub | 2 years ago | leapfrog-santosh
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' 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 'int java.lang.Integer.intValue()' on a null object reference

      at com.azoft.carousellayoutmanager.CarouselLayoutManager.getScrollItemSize()
    2. com.azoft.carousellayoutmanager
      CenterScrollListener.onScrollStateChanged
      1. com.azoft.carousellayoutmanager.CarouselLayoutManager.getScrollItemSize(CarouselLayoutManager.java:574)
      2. com.azoft.carousellayoutmanager.CarouselLayoutManager.getMaxScrollOffset(CarouselLayoutManager.java:415)
      3. com.azoft.carousellayoutmanager.CarouselLayoutManager.getCurrentScrollPosition(CarouselLayoutManager.java:404)
      4. com.azoft.carousellayoutmanager.CarouselLayoutManager.getOffsetCenterView(CarouselLayoutManager.java:584)
      5. com.azoft.carousellayoutmanager.CenterScrollListener.onScrollStateChanged(CenterScrollListener.java:25)
      5 frames
    3. Android v7
      RecyclerView.dispatchOnScrollStateChanged
      1. android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:3990)
      1 frame