Skip to content

ST6RI-951 NullPointerException in FeatureAdapter#getTypes when a feature chain is partially unresolved - #798

Open
adaussy wants to merge 2 commits into
masterfrom
ST6RI-951
Open

ST6RI-951 NullPointerException in FeatureAdapter#getTypes when a feature chain is partially unresolved#798
adaussy wants to merge 2 commits into
masterfrom
ST6RI-951

Conversation

@adaussy

@adaussy adaussy commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

FeatureAdapter#getTypes(...) can throw a NullPointerException when deriving the type of a Feature whose typingFeatures() result contains a null entry. This commit fix this issue

AxelRICHARD and others added 2 commits July 27, 2026 16:16
FeatureAdapter#getTypes(...) can throw a NullPointerException when
deriving the type of a Feature whose typingFeatures() result contains a
null entry.

This can happen for a syntactically valid SysML model during
intermediate model construction, import, or partial linking, when a
FeatureChaining relationship exists but its chainingFeature reference
has not been resolved yet.

The fix is small and defensive: skip null entries returned by
feature.typingFeatures() before recursively calling
FeatureUtil.getTypesOf(...).

Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
@adaussy adaussy added this to the 2026-08 milestone Sep 7, 2026
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.

3 participants