Skip to content

#1331: Fix NPE in restrictionForUnchangedSegment if actual version is null#1332

Merged
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1331-restriction-for-null-version
Jan 11, 2026
Merged

#1331: Fix NPE in restrictionForUnchangedSegment if actual version is null#1332
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1331-restriction-for-null-version

Conversation

@andrzejj0
Copy link
Copy Markdown
Contributor

A fix for an NPE in an edge case: restrictionForUnchangedSegment(actualVersion, unchangedSegment, allowSnapshots). If actualVersion is a version range with an open upper boundary, unchangedSegment is not empty), then it triggers an NPE.

I tried to limit the scope.

@andrzejj0 andrzejj0 self-assigned this Jan 11, 2026
@andrzejj0 andrzejj0 added the bug label Jan 11, 2026
@andrzejj0 andrzejj0 linked an issue Jan 11, 2026 that may be closed by this pull request
@andrzejj0 andrzejj0 merged commit f51b9d5 into mojohaus:master Jan 11, 2026
17 checks passed
@andrzejj0 andrzejj0 deleted the issue-1331-restriction-for-null-version branch January 11, 2026 21:20
@github-actions github-actions bot added this to the 2.20.2 milestone Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.20.* -DallowMajorUpdates=false has bug

2 participants