C: fix NPE when building application with errors

This commit is contained in:
Alexey Andreev 2019-05-31 17:37:05 +03:00
parent c8676f7ffe
commit 3fe3aa5847

View File

@ -274,6 +274,9 @@ public class VirtualTableBuilder {
Set<String> visited) { Set<String> visited) {
while (visited.add(className)) { while (visited.add(className)) {
TableBuilder table = tables.get(className); TableBuilder table = tables.get(className);
if (table == null) {
break;
}
EntryBuilder entry = table.entries.get(method); EntryBuilder entry = table.entries.get(method);
if (entry == null) { if (entry == null) {
entry = new EntryBuilder(); entry = new EntryBuilder();