Closed t2gran closed 2 days ago
Attention: Patch coverage is 80.00000%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 69.45%. Comparing base (
23f04a0
) to head (0c914c4
). Report is 7 commits behind head on dev-2.x.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
In some cases (transit period filtering) stops can be dropped after they are created. This causes the stop-index(used in routing) to contain holes in it. This happens because the stop index is assigned to a stop when it is created. In this PR, I have gone over the code to make sure holes in the stop-index is handled correctly and no NPE is thrown.
Issue
After enabling
stopBoardAlightDuringTransferCost
I got NPE locally during testing of OTP. This fixes the NPE in TransitLayerMapper and cleans up the code a bit.Unit tests
🟥 I have not added any unit-tests for this. Instead I chose to improve logging and annotated with
@Nullable
in the appropriate place.Documentation
🟥 I have just updated the JaveDoc - if relevant.
Changelog
✅ This is a minor bug fix.
Bumping the serialization version id
✅ The order of the
StopTransferPriority
enums are changed. This may have an effect on the serialization.