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

GitHub | HellCat24 | 12 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

    setCurrentItem() crashes with 5 items and bottomLayout.setForceTitlesDisplay(true)

    GitHub | 12 months ago | HellCat24
    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.aurelhubert.ahbottomnavigation.AHHelper$1.onAnimationUpdate()
    2. com.aurelhubert.ahbottomnavigation
      AHHelper$1.onAnimationUpdate
      1. com.aurelhubert.ahbottomnavigation.AHHelper$1.onAnimationUpdate(AHHelper.java:57)
      1 frame
    3. Android Platform
      ValueAnimator.start
      1. android.animation.ValueAnimator.animateValue(ValueAnimator.java:1374)
      2. android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:602)
      3. android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:550)
      4. android.animation.ValueAnimator.start(ValueAnimator.java:1039)
      5. android.animation.ValueAnimator.start(ValueAnimator.java:1050)
      5 frames