java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.onebusaway.android.directions.util.CustomAddress.toString()' on a null object reference

GitHub | themonki | 6 months ago
  1. 0

    NPE when tapping on Invert option Trip Plan

    GitHub | 6 months ago | themonki
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.onebusaway.android.directions.util.CustomAddress.toString()' on a null object reference
  2. 0
    samebug tip
    Initialize the variable before calling a method on it.
  3. 0
    samebug tip
    Use 'dialog' to access views from custom_layout layout.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    The resource was accessed after it was dismissed.
  6. 0
    samebug tip
    The parsed JSON does not contains the requested field.

    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 'java.lang.String org.onebusaway.android.directions.util.CustomAddress.toString()' on a null object reference

      at org.onebusaway.android.ui.TripPlanFragment.reverseTrip()
    2. org.onebusaway.android
      TripPlanFragment.onOptionsItemSelected
      1. org.onebusaway.android.ui.TripPlanFragment.reverseTrip(TripPlanFragment.java:416)
      2. org.onebusaway.android.ui.TripPlanFragment.onOptionsItemSelected(TripPlanFragment.java:308)
      2 frames
    3. Android Support v4
      FragmentActivity.onMenuItemSelected
      1. android.support.v4.app.Fragment.performOptionsItemSelected(Fragment.java:2085)
      2. android.support.v4.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:2163)
      3. android.support.v4.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:304)
      4. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:409)
      4 frames
    4. Android v7
      AppCompatDelegateImplV7.onMenuItemSelected
      1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:189)
      2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
      3. android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:663)
      3 frames
    5. android.support.v7
      MenuPopupHelper.onItemClick
      1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
      2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
      3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
      4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)
      5. android.support.v7.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:191)
      5 frames
    6. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.performItemClick(AdapterView.java:310)
      2. android.widget.AbsListView.performItemClick(AbsListView.java:1145)
      3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3066)
      4. android.widget.AbsListView$3.run(AbsListView.java:3903)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:224)
      8. android.app.ActivityThread.main(ActivityThread.java:5526)
      8 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames