Skip to content

Fixed #1317: Regression coming from ArtifactVersions::filter when currentVersion is null and ignoredVersions is not null#1319

Merged
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1317-ignore-versions
Nov 30, 2025
Merged

Fixed #1317: Regression coming from ArtifactVersions::filter when currentVersion is null and ignoredVersions is not null#1319
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1317-ignore-versions

Conversation

@andrzejj0
Copy link
Copy Markdown
Contributor

This is caused by a refactoring job of RuleService using the new ArtifactVersions::filter, which causes IgnoreVersionHelper to trigger an NPE.

Fixed both the root cause (testing against a non-existing version) as well as the susceptibility of the IgnoreVersionHelper to trigger an NPE if the version is null.

…when currentVersion is null and ignoredVersions is not null
@andrzejj0 andrzejj0 added the bug label Nov 30, 2025
@andrzejj0 andrzejj0 added this to the 2.20.2 milestone Nov 30, 2025
@andrzejj0 andrzejj0 linked an issue Nov 30, 2025 that may be closed by this pull request
@andrzejj0 andrzejj0 self-assigned this Nov 30, 2025
@andrzejj0 andrzejj0 merged commit 3d10c6e into mojohaus:master Nov 30, 2025
17 checks passed
@andrzejj0 andrzejj0 deleted the issue-1317-ignore-versions branch November 30, 2025 16:32
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.

Regression in version 2.20.x

2 participants