[XDA-University] judas1977:
Hello. Some time ago i compiled AICP LP for my device. Everything seems working good, except settings -> display. Menu cannot be opened, it always FC's (settings). I didn't see any info about that bug for other devices, so something has to be fkd up on my side;).

Here is some logs:

11-25 13:55:51.830 D/SubSettings(4917): Launching fragment com.android.settings.DisplaySettings
11-25 13:55:51.859 D/AndroidRuntime(4917): Shutting down VM
11-25 13:55:51.861 E/AndroidRuntime(4917): FATAL EXCEPTION: main
11-25 13:55:51.861 E/AndroidRuntime(4917): Process: com.android.settings, PID: 4917
11-25 13:55:51.861 E/AndroidRuntime(4917): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2432)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread.access$900(ActivityThread.java:154)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.os.Handler.dispatchMessage(Handler.java:102)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.os.Looper.loop(Looper.java:135)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread.main(ActivityThread.java:5310)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at java.lang.reflect.Method.invoke(Native Method)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at java.lang.reflect.Method.invoke(Method.java:372)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
11-25 13:55:51.861 E/AndroidRuntime(4917): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference
11-25 13:55:51.861 E/AndroidRuntime(4917):	at com.android.settings.DisplaySettings.onCreate(DisplaySettings.java:215)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.Fragment.performCreate(Fragment.java:2031)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.BackStackRecord.run(BackStackRecord.java:834)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:1013)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:616)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.Activity.performCreate(Activity.java:6865)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
11-25 13:55:51.861 E/AndroidRuntime(4917):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2323)
11-25 13:55:51.861 E/AndroidRuntime(4917):	... 10 more
11-25 13:55:51.866 W/ActivityManager(920): Force finishing activity 1 com.android.settings/.SubSettings
11-25 13:55:51.868 W/ActivityManager(920): Force finishing activity 2 com.android.settings/.Settings