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

JIRA | Nikolay G. | 10 months ago
  1. 0

    On a fresh installed CM 12.1 snapshot from 2016-01-27 02:03:48 for Motorola MotoX ghost (XT1052 German GSM retail version) when I go to Settings->Wrireless & Networks->More... the Settings app crashes with the following stack trace: 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 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5294) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference at com.android.settings.WirelessSettings.onCreate(WirelessSettings.java:343) at android.app.Fragment.performCreate(Fragment.java:2031) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.app.BackStackRecord.run(BackStackRecord.java:834) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483) at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:998) at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:601) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311) ... 10 more

    JIRA | 10 months ago | Nikolay G.
    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
  2. 0

    On a fresh installed CM 12.1 snapshot from 2016-01-27 02:03:48 for Motorola MotoX ghost (XT1052 German GSM retail version) when I go to Settings->Wrireless & Networks->More... the Settings app crashes with the following stack trace: 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 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5294) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference at com.android.settings.WirelessSettings.onCreate(WirelessSettings.java:343) at android.app.Fragment.performCreate(Fragment.java:2031) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.app.BackStackRecord.run(BackStackRecord.java:834) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483) at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:998) at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:601) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311) ... 10 more

    JIRA | 10 months ago | Nikolay G.
    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
  3. 0

    [ROM][5.0.2][KFHD7][Unofficial]BeanStalk5.0 … - Pg. 10 | Amazon 7" Kindle Fire HD, 8.9" Kindle Fire HD, Kindle Fire 2

    xda-developers.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$InputMethodAndLanguageSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable To Select Keyboard In Settings - OnePlus One - bacon - CyanogenMod Forum

    cyanogenmod.org | 8 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$InputMethodAndLanguageSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference
  6. 0

    NPE when hiding trip planning notification preference

    GitHub | 5 months ago | barbeau
    java.lang.RuntimeException: Unable to resume activity {com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.PreferencesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean android.preference.PreferenceCategory.removePreference(android.preference.Preference)' on a null object reference

      at com.android.settings.WirelessSettings.onCreate()
    2. com.android.settings
      WirelessSettings.onCreate
      1. com.android.settings.WirelessSettings.onCreate(WirelessSettings.java:343)
      1 frame
    3. Android Platform
      FragmentManagerImpl.executePendingTransactions
      1. android.app.Fragment.performCreate(Fragment.java:2031)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
      4. android.app.BackStackRecord.run(BackStackRecord.java:834)
      5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
      6. android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483)
      6 frames
    4. com.android.settings
      SettingsActivity.onCreate
      1. com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:998)
      2. com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:601)
      2 frames
    5. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5990)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
      5. android.app.ActivityThread.access$900(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5294)
      9 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames