Repository navigation
Parse a parking that has no ParentSiteRef - #339
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
teppope
marked this pull request as ready for review
October 30, 2026 12:39
testower
approved these changes
Nov 19, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #339 +/- ##
============================================
- Coverage 89.28% 88.41% -0.88%
- Complexity 241 244 +3
============================================
Files 16 17 +1
Lines 821 837 +16
Branches 63 71 +8
============================================
+ Hits 733 740 +7
- Misses 63 65 +2
- Partials 25 32 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vpaturet
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SiteFrameParserno longer throws aNullPointerExceptionwhen aParkinghas noParentSiteRef.Parkingto the parking index. It adds aParkingto the index by parent site only when theParkinghas aParentSiteRef.Issue
The NeTEx Nordic profile makes
ParentSiteRefoptional on aParking. A file with a standaloneParkingstopped the whole parse. TheParkingexample for a park-and-ride proposal onentur/profile-exampleshas noParentSiteRef, and the parser could not read it.Verification
Site, givesParentSiteRefthe cardinality 0:1.Parkinginherits it fromSite.SiteFrameParserTestfails without the fix:NullPointerException: Cannot invoke "SiteRefStructure.getRef()" because the return value of "Parking.getParentSiteRef()" is null, atSiteFrameParser.parseParkings.mvn verify -P prettierCheckpasses, with 36 tests.