java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 2

    Fragment must be a public static class to be properly recreated from instance state

    Stack Overflow | 8 months ago | Falling Into Infinity
    java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
  2. 0

    Crash when trying to reset progress

    GitHub | 2 months ago | ByteHamster
    java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
  3. 0

    Creating an account on a slow connection can crash if activity is detached

    GitHub | 3 years ago | maxme
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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.IllegalStateException

    Fragment null must be a public static class to be properly recreated from instance state.

    at android.support.v4.app.BackStackRecord.doAddOp()
  2. Android Support v4
    DialogFragment.show
    1. android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:435)
    2. android.support.v4.app.BackStackRecord.add(BackStackRecord.java:414)
    3. android.support.v4.app.DialogFragment.show(DialogFragment.java:154)
    3 frames
  3. com.androidapp.base
    BaseActivity.showDialogFragment
    1. com.androidapp.base.BaseActivity.showDialogFragment(BaseActivity.java:78)
    1 frame
  4. com.androidapp
    MainActivity$6.onClick
    1. com.androidapp.MainActivity.showNewDialog(MainActivity.java:304)
    2. com.androidapp.MainActivity$6.onClick(MainActivity.java:228)
    2 frames