When running my game, if I press home and then return to the app (via the multi-task button or by tapping on the app's icon again), it force closes immediately. "End application when not in foreground" is not checked, and I can't figure out why it's crashing!
Here's a portion of my log from the crash, if anyone can help me make sense of the problem (and if you need the full log for more information please let me know):
Code
...
12-21 21:09:24.034 D/StatusBarManagerService( 2572): semi p:4603,o:f
12-21 21:09:24.034 E/AndroidRuntime( 4603): FATAL EXCEPTION: main
12-21 21:09:24.034 E/AndroidRuntime( 4603): Process: com.bipolardesign.spaceboost, PID: 4603
12-21 21:09:24.034 E/AndroidRuntime( 4603): java.lang.RuntimeException: Unable to resume activity {com.bipolardesign.spaceboost/com.bipolardesign.spaceboost.Main}: java.lang.NullPointerException
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3076)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3105)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.os.Handler.dispatchMessage(Handler.java:102)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.os.Looper.loop(Looper.java:146)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.ActivityThread.main(ActivityThread.java:5602)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at java.lang.reflect.Method.invokeNative(Native Method)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at java.lang.reflect.Method.invoke(Method.java:515)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at dalvik.system.NativeStart.main(Native Method)
12-21 21:09:24.034 E/AndroidRuntime( 4603): Caused by: java.lang.NullPointerException
12-21 21:09:24.034 E/AndroidRuntime( 4603): at Extensions.CRunInAppAndroid.continueRunObject(CRunInAppAndroid.java:376)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at RunLoop.CRun.resume(CRun.java:1873)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at Runtime.MMFRuntime.onResume(MMFRuntime.java:1042)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1198)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.Activity.performResume(Activity.java:5530)
12-21 21:09:24.034 E/AndroidRuntime( 4603): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3066)
12-21 21:09:24.034 E/AndroidRuntime( 4603): ... 11 more
12-21 21:09:24.044 W/ActivityManager( 2572): Force finishing activity com.bipolardesign.spaceboost/.Main
...
Display More