[Xperia Z2 Original Android Development] spida_singh:
I also get force close on:

Settings > Lockscreen > Buttons

08-27 18:17:52.599 D/SubSettings(17972): Launching fragment com.android.settings.liquid.LockscreenButtons
08-27 18:17:52.599 E/AndroidRuntime(17972): FATAL EXCEPTION: main
08-27 18:17:52.599 E/AndroidRuntime(17972): Process: com.android.settings, PID: 17972
08-27 18:17:52.599 E/AndroidRuntime(17972): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.Preference.onPrepareForRemoval()' on a null object reference
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2227)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2276)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread.access$800(ActivityThread.java:144)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.os.Handler.dispatchMessage(Handler.java:102)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.os.Looper.loop(Looper.java:136)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread.main(ActivityThread.java:5151)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at java.lang.reflect.Method.invoke(Native Method)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
08-27 18:17:52.599 E/AndroidRuntime(17972): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.Preference.onPrepareForRemoval()' on a null object reference
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.preference.PreferenceGroup.removePreferenceInt(PreferenceGroup.java:188)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.preference.PreferenceGroup.removePreference(PreferenceGroup.java:181)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at com.android.settings.liquid.LockscreenButtons.onCreate(LockscreenButtons.java:91)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.Fragment.performCreate(Fragment.java:1678)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:859)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.BackStackRecord.run(BackStackRecord.java:686)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.Activity.performStart(Activity.java:6029)
08-27 18:17:52.599 E/AndroidRuntime(17972):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2190)
08-27 18:17:52.599 E/AndroidRuntime(17972):	... 9 more
08-27 18:17:52.609 W/ActivityManager( 867): Force finishing activity com.android.settings/.SubSettings
08-27 18:17:52.609 W/ActivityManager( 867): Force finishing activity com.android.settings/.SubSettings
08-27 18:17:53.109 W/ActivityManager( 867): Activity pause timeout for ActivityRecord{6582c678 u0 com.android.settings/.SubSettings t41 f}
08-27 18:17:54.649 I/Process (17972): Sending signal. PID: 17972 SIG: 9
08-27 18:17:54.659 I/ActivityManager( 867): Process com.android.settings (pid 17972) has died.
08-27 18:17:54.659 I/WindowState( 867): WIN DEATH: Window{65b1b268 u0 com.android.settings/com.android.settings.Settings}
08-27 18:17:54.659 W/ActivityManager( 867): Service crashed 2 times, stopping: ServiceRecord{656808f0 u0 com.android.settings/.liquid.hfm.CheckHosts}
08-27 18:17:54.669 E/ResourceType( 867): Style contains key with bad package: 0x00000000
08-27 18:17:54.669 E/ResourceType( 867): Style contains key with bad package: 0x00000000
08-27 18:17:54.669 I/WindowState( 867): WIN DEATH: Window{65c50240 u0 com.android.settings/com.android.settings.SubSettings}
08-27 18:17:54.679 W/art ( 316): Could not get current activity
08-27 18:17:54.689 I/ActivityManager( 867): Start proc com.android.settings for activity com.android.settings/.Settings: pid=18923 uid=1000 gids={41000, 1028, 1015, 1023, 3002, 3001, 3003, 1021, 3004, 3005, 1000, 3010, 1010}
08-27 18:17:54.749 D/ActivityThread(18923): handleBindApplication:com.android.settings