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

GitHub | gubatron | 7 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

    [android] NPE @ com.andrew.apollo.dragdrop.DragSortListView.measureItemAndGetHeights:604

    GitHub | 7 months ago | gubatron
    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.andrew.apollo.dragdrop.DragSortListView.measureItemAndGetHeights()
    2. com.andrew.apollo
      DragSortListView.layoutChildren
      1. com.andrew.apollo.dragdrop.DragSortListView.measureItemAndGetHeights(DragSortListView.java:604)
      2. com.andrew.apollo.dragdrop.DragSortListView.getItemHeights(DragSortListView.java:701)
      3. com.andrew.apollo.dragdrop.DragSortListView.getShuffleEdge(DragSortListView.java:780)
      4. com.andrew.apollo.dragdrop.DragSortListView.updatePositions(DragSortListView.java:828)
      5. com.andrew.apollo.dragdrop.DragSortListView.layoutChildren(DragSortListView.java:1445)
      5 frames