Skip to content

Commit 567328d

Browse files
Fixed NPE in ClassInfo accepting java.lang.Object
1 parent 93ff6ad commit 567328d

File tree

1 file changed

+1
-1
lines changed
  • retrolambda/src/main/java/net/orfjackal/retrolambda/interfaces

1 file changed

+1
-1
lines changed

retrolambda/src/main/java/net/orfjackal/retrolambda/interfaces/ClassInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ClassInfo(ClassReader cr) {
3030
this.reader = cr;
3131
this.access = cr.getAccess();
3232
this.type = Type.getObjectType(cr.getClassName());
33-
this.superclass = Type.getObjectType(cr.getSuperName());
33+
this.superclass = cr.getSuperName() != null ? Type.getObjectType(cr.getSuperName()) : null;
3434
for (String iface : cr.getInterfaces()) {
3535
this.interfaces.add(Type.getObjectType(iface));
3636
}

0 commit comments

Comments
 (0)