ianhanniballake/TripleSolitaire — Issue #37: InstantiationException Crash
Author: ianhanniballake
Created: 2011-10-24 20:21:34+00:00
State: open
Labels: Crash

Win dialog was open and the tablet rotated and apparently crashed.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.triplesolitaire/com.github.triplesolitaire.TripleSolitaireActivity}: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.github.triplesolitaire.WinDialogFragment: make sure class name exists, is public, and has an empty constructor that is public
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3188)
at android.app.ActivityThread.access$600(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1028)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.github.triplesolitaire.WinDialogFragment: make sure class name exists, is public, and has an empty constructor that is public
at android.app.Fragment.instantiate(Fragment.java:571)
at android.app.FragmentState.instantiate(Fragment.java:96)
at android.app.FragmentManagerImpl.restoreAllState(FragmentManager.java:1589)
at android.app.Activity.onCreate(Activity.java:854)
at com.github.triplesolitaire.TripleSolitaireActivity.onCreate(TripleSolitaireActivity.java:334)
at android.app.Activity.performCreate(Activity.java:4397)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779)
... 12 more
Caused by: java.lang.InstantiationException: com.github.triplesolitaire.WinDialogFragment
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1301)
at android.app.Fragment.instantiate(Fragment.java:560)
... 19 more