Skip to content

Bugfix: ClassCastException when planning flex routes#3762

Merged
leonardehrenfried merged 1 commit into
opentripplanner:dev-2.xfrom
ibi-group:flex-path-tail
Dec 2, 2021
Merged

Bugfix: ClassCastException when planning flex routes#3762
leonardehrenfried merged 1 commit into
opentripplanner:dev-2.xfrom
ibi-group:flex-path-tail

Conversation

@leonardehrenfried

Copy link
Copy Markdown
Member

Summary

When the transit tails for a Raptor path with a flex egress were calculated it a transfer leg was attempted to be cast to an egress leg which threw an exception.

If we get a transfer we then skip to the next leg.

Issue

closes #3761

Unit tests

Unit test added.

Code style

yes

Documentation

n/a

@leonardehrenfried leonardehrenfried requested a review from a team as a code owner December 2, 2021 10:31
@leonardehrenfried leonardehrenfried changed the title Bugifx: Skip to the egress leg when using flex for transit tails Bugfix: ClassCastException when planning flex routes Dec 2, 2021
@t2gran t2gran added this to the 2.1 milestone Dec 2, 2021
@leonardehrenfried leonardehrenfried merged commit fc86a18 into opentripplanner:dev-2.x Dec 2, 2021
@leonardehrenfried leonardehrenfried deleted the flex-path-tail branch December 2, 2021 17:00
t2gran pushed a commit that referenced this pull request Dec 2, 2021
@leonardehrenfried leonardehrenfried added IBI Developed by or important for IBI Group and removed IBI test labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IBI Developed by or important for IBI Group

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClassCastException when optimizing transfers with flex egress

3 participants