Skip to content

Fix bug on pre-build const connection extraction#30

Merged
mkorbel1 merged 2 commits intointel:mainfrom
mkorbel1:const_src_ref_ext
Dec 30, 2025
Merged

Fix bug on pre-build const connection extraction#30
mkorbel1 merged 2 commits intointel:mainfrom
mkorbel1:const_src_ref_ext

Conversation

@mkorbel1
Copy link
Contributor

Description & Motivation

If a ConnectionExtractor was run pre-build, then there is no parentModule for Const, so we can get a null exception if we try to get the srcModule of the connection. This PR fixes the bug by using the dstModule instead, which will always be a port.

Related Issue(s)

N/A

Testing

Added a new test

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

No

@mkorbel1 mkorbel1 merged commit 26d3eb4 into intel:main Dec 30, 2025
2 checks passed
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.

1 participant