java.lang.NullPointerException: Attempt to write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference

Stack Overflow | Mudit | 5 months ago
  1. 0

    App crash while using tabbed activity and fragments

    Stack Overflow | 5 months ago | Mudit
    java.lang.NullPointerException: Attempt to write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Chandan Jha 1 times, last 7 months ago
3 unregistered visitors
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 write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference

    at android.support.v4.app.BackStackRecord.doAddOp()
  2. Android Support v4
    ViewPager$3.run
    1. android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:418)
    2. android.support.v4.app.BackStackRecord.add(BackStackRecord.java:413)
    3. android.support.v4.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:99)
    4. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:943)
    5. android.support.v4.view.ViewPager.populate(ViewPager.java:1157)
    6. android.support.v4.view.ViewPager.populate(ViewPager.java:1025)
    7. android.support.v4.view.ViewPager$3.run(ViewPager.java:254)
    7 frames
  3. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    3. android.view.Choreographer.doFrame(Choreographer.java:549)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5343)
    8 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  5. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    2 frames