diff --git a/core/src/main/java/org/teavm/model/classes/VirtualTableBuilder.java b/core/src/main/java/org/teavm/model/classes/VirtualTableBuilder.java index cb2903246..7755cb671 100644 --- a/core/src/main/java/org/teavm/model/classes/VirtualTableBuilder.java +++ b/core/src/main/java/org/teavm/model/classes/VirtualTableBuilder.java @@ -274,6 +274,9 @@ public class VirtualTableBuilder { Set visited) { while (visited.add(className)) { TableBuilder table = tables.get(className); + if (table == null) { + break; + } EntryBuilder entry = table.entries.get(method); if (entry == null) { entry = new EntryBuilder();