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

GitHub | tux-world | 5 months ago
  1. 0

    foldablelayout cause of crash my application when i try to close inside EventBus

    GitHub | 5 months ago | tux-world
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.indexOfChild(android.view.View)' on a null object
  2. 0
    Initialize the variable before calling a method on it.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    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 android.view.ViewGroup.indexOfChild(android.view.View)' on a null object

      at com.alexvasilkov.foldablelayout.UnfoldableView.switchViews()
    2. com.alexvasilkov.foldablelayout
      FoldableListLayout.setFoldRotation
      1. com.alexvasilkov.foldablelayout.UnfoldableView.switchViews(UnfoldableView.java:384)
      2. com.alexvasilkov.foldablelayout.UnfoldableView.clearCoverViewInternal(UnfoldableView.java:368)
      3. com.alexvasilkov.foldablelayout.UnfoldableView.onFoldedBack(UnfoldableView.java:150)
      4. com.alexvasilkov.foldablelayout.UnfoldableView.setState(UnfoldableView.java:186)
      5. com.alexvasilkov.foldablelayout.UnfoldableView.setFoldRotation(UnfoldableView.java:254)
      6. com.alexvasilkov.foldablelayout.FoldableListLayout.setFoldRotation(FoldableListLayout.java:251)
      6 frames
    3. Android Platform
      ActivityThread.main
      1. android.animation.PropertyValuesHolder.nCallFloatMethod(Native Method)
      2. android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:37)
      3. android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1296)
      4. android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:981)
      5. android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1384)
      6. android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1427)
      7. android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:759)
      8. android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)
      9. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      10. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      11. android.view.Choreographer.doFrame(Choreographer.java:603)
      12. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      13. android.os.Handler.handleCallback(Handler.java:739)
      14. android.os.Handler.dispatchMessage(Handler.java:95)
      15. android.os.Looper.loop(Looper.java:234)
      16. android.app.ActivityThread.main(ActivityThread.java:5526)
      16 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames