mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-20 21:32:12 +00:00
Check for null when inspecting Mixin superclass, closes #546
This commit is contained in:
1 parent
2e5a4b0512
commit
1accf3fd6b
1 file changed
+1
-1
@@ -578,7 +578,7 @@ class MixinInfo implements Comparable<MixinInfo>, IMixinInfo {
|
||||
|
||||
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)) {
|
||||
|
||||
Reference in new issue
Block a user