mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix exception thrown with incomplete classpath
This commit is contained in:
parent
3a29e869ef
commit
14dd352cb6
|
@ -120,7 +120,7 @@ public class Decompiler {
|
|||
}
|
||||
ClassHolder cls = classSource.get(className);
|
||||
if (cls == null) {
|
||||
throw new IllegalArgumentException("Class not found: " + className);
|
||||
return;
|
||||
}
|
||||
if (cls.getParent() != null) {
|
||||
orderClasses(cls.getParent(), visited, order);
|
||||
|
|
|
@ -74,6 +74,9 @@ class JSODependencyListener implements DependencyListener {
|
|||
private ExposedClass createExposedClass(String name) {
|
||||
ClassReader cls = classSource.get(name);
|
||||
ExposedClass exposedCls = new ExposedClass();
|
||||
if (cls == null) {
|
||||
return exposedCls;
|
||||
}
|
||||
if (cls.getParent() != null && !cls.getParent().equals(cls.getName())) {
|
||||
ExposedClass parent = getExposedClass(cls.getParent());
|
||||
exposedCls.inheritedMethods.putAll(parent.inheritedMethods);
|
||||
|
|
Loading…
Reference in New Issue
Block a user