Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE on delegate calls in OverrideOnly checks #1111

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

novotnyr
Copy link
Collaborator

@novotnyr novotnyr commented Jul 9, 2024

DelegateCallOnOverrideOnlyUsageFilter that checks for delegate calls on methods with @OverrideOnly might fail when a delegate is super.

Filter out such method calls immediately, as SuperclassCallOnOverrideOnlyUsageFilter might be applied only in the later stages of API usage filtering.

See MP-6724 Plugin Verifier: NPE on delegate calls in OverrideOnly Checks

When there is a super call and no delegate is set, or that delegate is either `this` or `super`, do not apply this filter.
@novotnyr novotnyr merged commit 13ee35a into master Jul 9, 2024
2 checks passed
@novotnyr novotnyr deleted the mp-6724-injector-failing branch July 9, 2024 09:37
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