-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix import of invalid flexible areas #7043
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 import of invalid flexible areas #7043
Conversation
|
Data producers will always find new ways to produce invalid data. :) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #7043 +/- ##
=============================================
+ Coverage 72.11% 72.22% +0.11%
- Complexity 20058 20164 +106
=============================================
Files 2177 2188 +11
Lines 80926 81188 +262
Branches 8135 8142 +7
=============================================
+ Hits 58359 58641 +282
+ Misses 19697 19670 -27
- Partials 2870 2877 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
t2gran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, just a small update to doc
application/src/main/java/org/opentripplanner/netex/mapping/FlexStopsMapper.java
Outdated
Show resolved
Hide resolved
…exStopsMapper.java Co-authored-by: Thomas Gran <[email protected]>
|
It appears that @t2gran has taken over my review so I let him also give the approval. |
Summary
When importing a NeTEx flex stop containing multiple areas, the graph builder crashes if one of the areas is invalid while the others are valid.
This PR fixes this corner-case.
Issue
No
Unit tests
Added unit test.
There was a latent bug in the unit tests where GroupStops were incorrectly cast to AreaStop. The bug was silent since the cast applied only to null references. This is fixed.
Documentation
No
Changelog
skip