Skip to content

Commit

Permalink
Add null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Sep 26, 2024
1 parent e8aeef4 commit b715358
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -3348,7 +3348,10 @@ protected MultiReleaseVersionMatcher(ClassFileVersion classFileVersion) {
/**
* {@inheritDoc}
*/
public boolean matches(@NeverNull Element target) {
public boolean matches(@MaybeNull Element target) {
if (target == null) {
return true;
}
String name = target.getName();
if (name.startsWith("/")) {
name = name.substring(1);
Expand Down

0 comments on commit b715358

Please sign in to comment.