Skip to content

Commit

Permalink
Check for null when inspecting Mixin superclass, closes #546
Browse files Browse the repository at this point in the history
  • Loading branch information
Mumfrey committed May 12, 2024
1 parent 2e5a4b0 commit 1accf3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void validate(State state, List<ClassInfo> targetClasses) {

if (!targetClass.hasSuperClass(classNode.superName, ClassInfo.Traversal.SUPER)) {
ClassInfo superClass = ClassInfo.forName(classNode.superName);
if (superClass.isMixin()) {
if (superClass != null && superClass.isMixin()) {
// If superclass is a mixin, check for hierarchy derp
for (ClassInfo superTarget : superClass.getTargets()) {
if (targetClasses.contains(superTarget)) {
Expand Down

0 comments on commit 1accf3f

Please sign in to comment.