Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on real-time directions refresh #790

Closed
barbeau opened this issue Aug 28, 2017 · 1 comment
Closed

NPE on real-time directions refresh #790

barbeau opened this issue Aug 28, 2017 · 1 comment
Labels
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Aug 28, 2017

Summary:

I'm seeing a large number of NPEs (278 in last week, 2618 total, affecting 1301 users) in the Android Developer Console for OBA with the below stack trace:

java.lang.NullPointerException: 
  at org.onebusaway.android.directions.realtime.RealtimeService.possibleReschedule (RealtimeService.java:124)
  at org.onebusaway.android.directions.realtime.RealtimeService.onHandleIntent (RealtimeService.java:82)
  at android.app.IntentService$ServiceHandler.handleMessage (IntentService.java:67)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:154)
  at android.os.HandlerThread.run (HandlerThread.java:61)

Steps to reproduce:

Not sure - I'm assuming planning a trip and wait for the real-time refresh to happen

Expected behavior:

Not crash

Observed behavior:

App crashes

Device and Android version:

Wide variety - Android versions 5.1 to 7.0, LG, Samsung, and Pixel.

@barbeau
Copy link
Member Author

barbeau commented Aug 30, 2017

The root cause behind this is now ticketed in #791.

For now, I'm going to add workaround code just to avoid the NPE and drop scheduling the check for real-time directions changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant