java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference

GitHub | barbeau | 6 months ago
  1. 0

    GitHub comment 541#233395811

    GitHub | 6 months ago | barbeau
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference
  2. 0

    GitHub comment 541#233332562

    GitHub | 6 months ago | barbeau
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference
  3. 0

    NPE when accessing route favorite in database

    GitHub | 5 months ago | barbeau
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    Use 'dialog' to access views from custom_layout layout.

    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 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference

      at org.onebusaway.android.ui.ArrivalsListHeader.refreshError()
    2. org.onebusaway.android
      HomeActivity$7.onPanelStateChanged
      1. org.onebusaway.android.ui.ArrivalsListHeader.refreshError(ArrivalsListHeader.java:1224)
      2. org.onebusaway.android.ui.ArrivalsListHeader.refresh(ArrivalsListHeader.java:627)
      3. org.onebusaway.android.ui.HomeActivity$7.onPanelCollapsed(HomeActivity.java:1390)
      4. org.onebusaway.android.ui.HomeActivity$7.onPanelStateChanged(HomeActivity.java:1351)
      4 frames
    3. com.sothree.slidinguppanel
      SlidingUpPanelLayout.setPanelState
      1. com.sothree.slidinguppanel.SlidingUpPanelLayout.dispatchOnPanelStateChanged(SlidingUpPanelLayout.java:644)
      2. com.sothree.slidinguppanel.SlidingUpPanelLayout.setPanelStateInternal(SlidingUpPanelLayout.java:1108)
      3. com.sothree.slidinguppanel.SlidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.java:1080)
      3 frames
    4. org.onebusaway.android
      HomeActivity.onCreate
      1. org.onebusaway.android.ui.HomeActivity.updateArrivalListFragment(HomeActivity.java:1067)
      2. org.onebusaway.android.ui.HomeActivity.setupMapState(HomeActivity.java:1485)
      3. org.onebusaway.android.ui.HomeActivity.onCreate(HomeActivity.java:309)
      3 frames
    5. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6272)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
      3 frames