java.lang.NullPointerException

Stack Overflow | fanjavaid | 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

    NullPointerException Initialize View in Fragment

    Stack Overflow | 4 months ago | fanjavaid
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.example.fanjavaid.tablayout.fragment.AccountFragment.onCreateView()
    2. com.example.fanjavaid
      AccountFragment.onCreateView
      1. com.example.fanjavaid.tablayout.fragment.AccountFragment.onCreateView(AccountFragment.java:27)
      1 frame
    3. Android Support v4
      ViewPager.onMeasure
      1. android.support.v4.app.Fragment.performCreateView(Fragment.java:2080)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
      5. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1638)
      6. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679)
      7. android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:166)
      8. android.support.v4.view.ViewPager.populate(ViewPager.java:1240)
      9. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
      10. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)
      10 frames