diff --git a/src/main/java/org/spongepowered/asm/util/asm/MixinVerifier.java b/src/main/java/org/spongepowered/asm/util/asm/MixinVerifier.java index 8519887b7..e8529c30b 100644 --- a/src/main/java/org/spongepowered/asm/util/asm/MixinVerifier.java +++ b/src/main/java/org/spongepowered/asm/util/asm/MixinVerifier.java @@ -101,6 +101,11 @@ protected boolean isAssignableFrom(final Type type, final Type other) { if (typeInfo.isInterface()) { typeInfo = ClassInfo.forName("java/lang/Object"); } - return ClassInfo.forType(other, TypeLookup.ELEMENT_TYPE).hasSuperClass(typeInfo); + + ClassInfo otherType = ClassInfo.forType(other, TypeLookup.ELEMENT_TYPE); + if (otherType != null) + return otherType.hasSuperClass(typeInfo); + + return false; } }