Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in wormhole.DestinationDialog #8

Closed
codeka opened this issue Oct 10, 2014 · 1 comment
Closed

NullPointerException in wormhole.DestinationDialog #8

codeka opened this issue Oct 10, 2014 · 1 comment
Labels

Comments

@codeka
Copy link
Owner

codeka commented Oct 10, 2014

java.lang.RuntimeException: Unable to start activity ComponentInfo{au.com.codeka.warworlds/au.com.codeka.warworlds.game.solarsystem.SolarSystemActivity}: java.lang.NullPointerException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3910)
    at android.app.ActivityThread.access$700(ActivityThread.java:165)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5391)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:525)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
    at au.com.codeka.warworlds.game.wormhole.DestinationDialog.[onCreateDialog|access$300](SourceFile:82)
    at android.support.v4.app.DialogFragment.[onDetach|getLayoutInflater](SourceFile:307)
    at android.support.v4.app.FragmentManagerImpl.[throwException|beginTransaction|putFragment|getFragment|saveFragmentInstanceState|dump|makeOpenCloseAnimation$376f30fd|makeFadeAnimation$424ea1bd|loadAnimation|moveToState|moveToState|addFragment|removeFragment|findFragmentById|findFragmentByTag|enqueueAction|allocBackStackIndex|setBackStackIndex|popBackStackState$68507953$44bd8ea3|restoreAllState|attachActivity|dispatchConfigurationChanged|dispatchCreateOptionsMenu|dispatchPrepareOptionsMenu|dispatchOptionsItemSelected](SourceFile:942)
    at android.support.v4.app.z.a(SourceFile:1121)
    at android.support.v4.app.z.e(SourceFile:1103)
    at android.support.v4.app.z.i(SourceFile:1901)
    at android.support.v4.app.FragmentActivity.onStart(SourceFile:567)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
    at android.app.Activity.performStart(Activity.java:5132)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
    ... 12 more
@codeka codeka added the bug label Oct 10, 2014
@codeka
Copy link
Owner Author

codeka commented Oct 11, 2014

This is the same problem as #6, the phone has been rotated (mostly likely) and Android re-creates the dialog. You can tell because the stack trace contains references to onStart().

pogster added a commit to pogster/wwmmo that referenced this issue Oct 26, 2014
@codeka codeka closed this as completed Oct 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant