java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference

GitHub | vecalion | 9 months ago
  1. 0

    The second navigation to a fragment with a ViewPager throws an exception

    GitHub | 9 months ago | vecalion
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
  2. 0

    ChildFragmentManager.getFragment() and NullPointerException

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
  3. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference

    GitHub | 1 month ago | leibown
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android app crashing after a while using Fragments and ViewPager

    Stack Overflow | 5 years ago | xteci
    java.lang.NullPointerException
  6. 0

    How to properly retain a DialogFragment through rotation?

    Stack Overflow | 4 years ago | ch3rryc0ke
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.openkit.example.sampleokapp/io.openkit.OKLoginActivity}: java.lang.NullPointerException
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 invoke virtual method 'int java.util.ArrayList.size()' on a null object reference

    at android.support.v4.app.FragmentManagerImpl.getFragment()
  2. Android Support v4
    FragmentManagerImpl.getFragment
    1. android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:667)
    1 frame
  3. md559873f5c332c022bf8710d3c9fbb7bb2
    MvxFragmentPagerAdapter2.restoreState
    1. md559873f5c332c022bf8710d3c9fbb7bb2.MvxFragmentPagerAdapter2.n_restoreState(Native Method)
    2. md559873f5c332c022bf8710d3c9fbb7bb2.MvxFragmentPagerAdapter2.restoreState(MvxFragmentPagerAdapter2.java:74)
    2 frames
  4. Android Support v4
    ViewPager.onRestoreInstanceState
    1. android.support.v4.view.ViewPager.onRestoreInstanceState(ViewPager.java:1319)
    1 frame
  5. Android Platform
    View.restoreHierarchyState
    1. android.view.View.dispatchRestoreInstanceState(View.java:13740)
    2. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2887)
    3. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2893)
    4. android.view.View.restoreHierarchyState(View.java:13718)
    4 frames
  6. Android Support v4
    FragmentManagerImpl.executePendingTransactions
    1. android.support.v4.app.Fragment.restoreViewState(Fragment.java:468)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1094)
    3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
    6. android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:570)
    6 frames
  7. mono.android.view
    View_OnClickListenerImplementor.onClick
    1. mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
    2. mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:29)
    2 frames
  8. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4780)
    2. android.view.View$PerformClick.run(View.java:19866)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5254)
    6 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames