[Android Q&A, Help & Troubleshooting] AdamOutler:
Please pardon me if this is the wrong section and feel free to report this thread with a request to move to the proper section.

I've been working on an app for XDA Developer TV. The source is located here: https://code.google.com/p/xda-adk/s...cts/xdaadk/app/src/com/google/android/DemoKit

I've been developing on a Nexus 7. I decided to switch to my Galaxy Nexus and the application Force Closes on This Line. Apparently my Bundle savedInstanceState == null.

This is the error:

09-09 21:59:58.959: D/AndroidRuntime(18735): Shutting down VM
09-09 21:59:58.959: W/dalvikvm(18735): threadid=1: thread exiting with uncaught exception (group=0x40a73300)
09-09 21:59:58.959: E/AndroidRuntime(18735): FATAL EXCEPTION: main
09-09 21:59:58.959: E/AndroidRuntime(18735): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.DemoKit/com.google.android.DemoKit.DemoKitPhone}: java.lang.NullPointerException
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread.access$600(ActivityThread.java:130)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.os.Handler.dispatchMessage(Handler.java:99)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.os.Looper.loop(Looper.java:137)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread.main(ActivityThread.java:4745)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at java.lang.reflect.Method.invokeNative(Native Method)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at java.lang.reflect.Method.invoke(Method.java:511)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at dalvik.system.NativeStart.main(Native Method)
09-09 21:59:58.959: E/AndroidRuntime(18735): Caused by: java.lang.NullPointerException
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.google.android.DemoKit.DemoKitPhone.showTabContents(DemoKitPhone.java:47)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.google.android.DemoKit.DemoKitPhone.showControls(DemoKitPhone.java:42)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.google.android.DemoKit.BaseActivity.onCreate(BaseActivity.java:26)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at com.google.android.DemoKit.DemoKitPhone.onCreate(DemoKitPhone.java:32)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.Activity.performCreate(Activity.java:5008)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
09-09 21:59:58.959: E/AndroidRuntime(18735):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
09-09 21:59:58.959: E/AndroidRuntime(18735):	... 11 more

I don't really know how to troubleshoot it because it's a pretty low level problem. How can I fix this?