OneBusAway/onebusaway-android

[Bug] - NullPointerException in TripDetailsListFragment - TripEndReceiver.onReceive

Closed this issue · 0 comments

Summary:

A NullPointerException is thrown in TripDetailsListFragment$TripEndReceiver.onReceive

How can we reproduce the issue?

  • Click on any stop
  • Select any bus from arrivals and click on it
  • Click on trip statues
  • Choose enable trip destination alarms
  • Back again to the arrivals list
  • You may wait some time for a function to invoke that destroys the service then a crash happens.

What did you expect the app to do?

Observed behavior:

Crash with this stacktrace

java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.fragment.app.FragmentActivity.unregisterReceiver(android.content.BroadcastReceiver)' on a null object reference
    at TripDetailsListFragment$TripEndReceiver.onReceive

Device and Android version:

Any device