From 3fe3aa58477211ebb651c2dbfac164658d00563d Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 31 May 2019 17:37:05 +0300 Subject: [PATCH] C: fix NPE when building application with errors --- .../main/java/org/teavm/model/classes/VirtualTableBuilder.java | 3 +++ 1 file changed, 3 insertions(+) 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();