Skip to content

Commit b715358

Browse files
committed
Add null check.
1 parent e8aeef4 commit b715358

File tree

1 file changed

+4
-1
lines changed
  • byte-buddy-dep/src/main/java/net/bytebuddy/build

1 file changed

+4
-1
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3348,7 +3348,10 @@ protected MultiReleaseVersionMatcher(ClassFileVersion classFileVersion) {
33483348
/**
33493349
* {@inheritDoc}
33503350
*/
3351-
public boolean matches(@NeverNull Element target) {
3351+
public boolean matches(@MaybeNull Element target) {
3352+
if (target == null) {
3353+
return true;
3354+
}
33523355
String name = target.getName();
33533356
if (name.startsWith("/")) {
33543357
name = name.substring(1);

0 commit comments

Comments
 (0)