Skip to content

Fixes #780#781

Open
MatteoRagni wants to merge 3 commits into
esmini:devfrom
MatteoRagni:issue_780
Open

Fixes #780#781
MatteoRagni wants to merge 3 commits into
esmini:devfrom
MatteoRagni:issue_780

Conversation

@MatteoRagni

Copy link
Copy Markdown
Contributor

Checks validity for lane link, continues-early on null ptrs.

Please refer to issue #780 for more information.

Checks the validity of lane_link before searching for the connected lane. The logic of the code has been inverted to continue-early in the look if one of the reference is null.

This is my first contribution to the project, make sure to review it!
eknabevcc pushed a commit that referenced this pull request Mar 21, 2026
Ensure link existence before searching for the connected lane. The logic of the code has been inverted to continue-early in the look if one of the reference is null.

Fixes #780, #781
@eknabevcc

Copy link
Copy Markdown
Collaborator

Really nice find and fix, revealing solid understanding of OpenDRIVE junction structure. Impressive!

I made a slight formatting to the commit, but kept you as author of course. Merged on dev. Pull request will be closed when merged to master by next release.

@MatteoRagni

Copy link
Copy Markdown
Contributor Author

Thanks Emil!

GT-karny added a commit to GT-karny/esmini that referenced this pull request Jun 13, 2026
UpdateOSIIntersection still had the pre-fix pattern
lane->GetLink(type)->GetId() with no null check on GetLink(); upstream fixed
this in 7a0844b ('Check validity of lane_link preventing segfault', esmini
esmini#780/esmini#781) which is present in the in-tree core OSIReporter.cpp but was never
ported to the fork (audit CORE-1). Port the three-stage early-continue form
verbatim. Other GetLink()->GetId() sites in this file are already guarded.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants