mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 03:22:17 +00:00
Rethrow spurious NPE as something more meaningful
This commit is contained in:
1 parent
237efbc625
commit
c804069f5c
1 file changed
+3
@@ -1207,6 +1207,9 @@ public class ClassInfo extends TreeInfo {
|
||||
if (this.isInterface || MixinEnvironment.getCompatibilityLevel().resolveMethodsInInterfaces()) {
|
||||
for (String implemented : this.interfaces) {
|
||||
ClassInfo iface = ClassInfo.forName(implemented);
|
||||
if (iface == null) {
|
||||
throw new RuntimeException(new ClassNotFoundException(implemented));
|
||||
}
|
||||
M member = iface.findInHierarchy(name, desc, true, traversal.next(), flags & ~ClassInfo.INCLUDE_PRIVATE, type);
|
||||
if (member != null) {
|
||||
return member;
|
||||
|
||||
Reference in new issue
Block a user