Fix compilation of WebAssembly samples

This commit is contained in:
Alexey Andreev 2017-10-22 20:22:24 +03:00
parent de14a57fe1
commit c82ed6746a
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,9 @@ public class VirtualTableProvider {
VirtualTable table = new VirtualTable(className);
virtualTables.put(className, table);
ClassReader cls = classSource.get(className);
if (cls == null) {
return;
}
if (cls.getParent() != null) {
fillClass(cls.getParent());
VirtualTable parentTable = virtualTables.get(cls.getParent());

View File

@ -44,6 +44,6 @@ public class ManagedMethodRepository {
return false;
}
MethodReader method = cls.getMethod(methodReference.getDescriptor());
return method.getAnnotations().get(Unmanaged.class.getName()) == null;
return method == null || method.getAnnotations().get(Unmanaged.class.getName()) == null;
}
}