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

GitHub | barbeau | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NPE when hiding trip planning notification preference

    GitHub | 7 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

    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 org.onebusaway.android.ui.PreferencesActivity.onResume()
    2. org.onebusaway.android
      PreferencesActivity.onResume
      1. org.onebusaway.android.ui.PreferencesActivity.onResume(PreferencesActivity.java:172)
      1 frame
    3. Android Platform
      ActivityThread.performResumeActivity
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1258)
      2. android.app.Activity.performResume(Activity.java:6327)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3092)
      3 frames