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

Fix NullPointerException when searching backwards with a frequency-based trip #6211

Merged

Conversation

miklcct
Copy link
Contributor

@miklcct miklcct commented Oct 30, 2024

Summary

This fixes a problem when search backwards with a frequency-based trip.

Issue

Fixes #6102

Unit tests

Added

Documentation

None needed. Pure bug fix only.

@miklcct miklcct marked this pull request as ready for review October 31, 2024 10:26
@miklcct miklcct requested a review from a team as a code owner October 31, 2024 10:26
@miklcct
Copy link
Contributor Author

miklcct commented Oct 31, 2024

I am going to submit this minimal fix for now and defer any refactoring until we have discussed #6213 .

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.03%. Comparing base (a574bc3) to head (d93be25).
Report is 64 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6211      +/-   ##
=============================================
+ Coverage      69.94%   70.03%   +0.09%     
- Complexity     17744    17785      +41     
=============================================
  Files           1998     2000       +2     
  Lines          75454    75515      +61     
  Branches        7723     7728       +5     
=============================================
+ Hits           52778    52890     +112     
+ Misses         20007    19950      -57     
- Partials        2669     2675       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good testing!

@leonardehrenfried leonardehrenfried merged commit 97b558f into opentripplanner:dev-2.x Nov 4, 2024
5 checks passed
t2gran pushed a commit that referenced this pull request Nov 4, 2024
@miklcct miklcct deleted the 6102-fix-alight-npe branch November 26, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullPointerException when trying to plan a journey with an arrival time
3 participants