Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Check if you imported android.support.v4.app.FragmentManager and not android.app.FragmentManager. Check for naming problems in your xml files as well, might have inconsistencies!

  2. ,
    Expert tip

    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment, as they're not totally compatible.

Solutions on the web

via Stack Overflow by Cyberlander
, 1 year ago
via dolinked.com by Unknown author, 2 years ago
via Stack Overflow by Maxouille
, 2 years ago
via Stack Overflow by Fahad Jameel
, 1 month ago
via Stack Overflow by Kostya Khuta
, 2 years ago
This exception has no message.
via Stack Overflow by user3566841
, 2 years ago
java.lang.NullPointerException: 	at android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:418)	at android.support.v4.app.BackStackRecord.add(BackStackRecord.java:413)	at android.support.v4.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:103)	at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1003)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1151)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1085)	at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1611)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:671)	at android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)	at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1319)	at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:736)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)	at android.view.View.measure(View.java:17331)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2548)	at android.view.View.measure(View.java:17331)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2279)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1393)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1592)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1251)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6540)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:813)	at android.view.Choreographer.doCallbacks(Choreographer.java:613)	at android.view.Choreographer.doFrame(Choreographer.java:583)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799)	at android.os.Handler.handleCallback(Handler.java:733)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:146)	at android.app.ActivityThread.main(ActivityThread.java:5593)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:515)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)	at dalvik.system.NativeStart.main(Native Method)