Skip to content

Commit

Permalink
Merge pull request #113 from lyubomyr-shaydariv/master
Browse files Browse the repository at this point in the history
Fix NullPointerException in ClassInfo accepting java.lang.Object
  • Loading branch information
luontola authored Jan 10, 2017
2 parents d2b0feb + 567328d commit 5069d30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ClassInfo(ClassReader cr) {
this.reader = cr;
this.access = cr.getAccess();
this.type = Type.getObjectType(cr.getClassName());
this.superclass = Type.getObjectType(cr.getSuperName());
this.superclass = cr.getSuperName() != null ? Type.getObjectType(cr.getSuperName()) : null;
for (String iface : cr.getInterfaces()) {
this.interfaces.add(Type.getObjectType(iface));
}
Expand Down

0 comments on commit 5069d30

Please sign in to comment.