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

Stack Overflow | SAdnan | 4 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

    Working with ViewPager inside Fragment

    Stack Overflow | 4 months ago | SAdnan
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.support.v7.widget.AppCompatButton.getLayoutParams()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.support.v7.widget.AppCompatButton.getLayoutParams()' on a null object reference

      at com.swipestox.presenter.view.fragment.ForgotPasswordFragment.onKeyboardHiddenSkipOneDraw()
    2. com.swipestox.presenter
      ForgotPasswordFragment.onKeyboardHiddenSkipOneDraw
      1. com.swipestox.presenter.view.fragment.ForgotPasswordFragment.onKeyboardHiddenSkipOneDraw(ForgotPasswordFragment.java:87)
      1 frame