JakeWharton/ActionBarSherlock — Issue #96: NPE in SherlockPreferenceActivity on 2.3
Author: nelenkov
Created: 2011-10-31 08:21:52+00:00
State: open

This is from running the demo app on N1 (CM 2.3.7) and NS (stock 2.3.6):

```java
E/AndroidRuntime(10221): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.actionbarsherlock.sample.demos/com.actionbarsherlock.sample.demos.app.ActionBarPreferenceActivity}: java.lang.NullPointerException
E/AndroidRuntime(10221):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768)
E/AndroidRuntime(10221):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
E/AndroidRuntime(10221):	at android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/AndroidRuntime(10221):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/AndroidRuntime(10221):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(10221):	at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(10221):	at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime(10221):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(10221):	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(10221):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime(10221):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime(10221):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(10221): Caused by: java.lang.NullPointerException
E/AndroidRuntime(10221):	at android.support.v4.app.SherlockPreferenceActivity.ensureSupportActionBarAttached(SherlockPreferenceActivity.java:156)
E/AndroidRuntime(10221):	at android.support.v4.app.SherlockPreferenceActivity.onCreate(SherlockPreferenceActivity.java:262)
E/AndroidRuntime(10221):	at com.actionbarsherlock.sample.demos.app.ActionBarPreferenceActivity.onCreate(ActionBarPreferenceActivity.java:44)
E/AndroidRuntime(10221):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(10221):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/AndroidRuntime(10221):	... 11 more
W/ActivityManager( 165): Force finishing activity com.actionbarsherlock.sample.demos/.app.ActionBarPreferenceActivity
W/ActivityManager( 165): Force finishing activity com.actionbarsherlock.sample.demos/.Support4Demos
```