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

GitHub | gubatron | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

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