java.lang.NullPointerException: Attempt to invoke virtual method 'void com.swipestox.presenter.view.activity.BaseActivity.setSkipNextOnGlobalEvent(boolean)' on a null object reference

Stack Overflow | S.Adnan | 4 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

    NullPointerException when trying to make ViewPager with two fragments

    Stack Overflow | 4 months ago | S.Adnan
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.swipestox.presenter.view.activity.BaseActivity.setSkipNextOnGlobalEvent(boolean)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.swipestox.presenter.view.activity.BaseActivity.setSkipNextOnGlobalEvent(boolean)' on a null object reference

      at com.swipestox.presenter.view.fragment.BaseFragment.onKeyboardHiddenSkipOneDraw()
    2. com.swipestox.presenter
      BaseActivity.onGlobalLayout
      1. com.swipestox.presenter.view.fragment.BaseFragment.onKeyboardHiddenSkipOneDraw(BaseFragment.java:183)
      2. com.swipestox.presenter.view.fragment.ForgotPasswordFragment.onKeyboardHiddenSkipOneDraw(ForgotPasswordFragment.java:89)
      3. com.swipestox.presenter.view.fragment.ForgotPasswordTabFragment.onKeyboardHiddenSkipOneDraw(ForgotPasswordTabFragment.java:130)
      4. com.swipestox.presenter.view.activity.BaseActivity.onGlobalLayout(BaseActivity.java:94)
      4 frames