Rethrow spurious NPE as something more meaningful

This commit is contained in:
Mumfrey committed 2015-11-23 22:57:01 +00:00
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;