From 7d2c76f7115426ebdaf6b14e044f14e7b5e7d0b4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 30 Jan 2019 19:36:00 +0300 Subject: [PATCH] Fix compiler crash when using incremental pipeline --- core/src/main/java/org/teavm/vm/TeaVM.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/vm/TeaVM.java b/core/src/main/java/org/teavm/vm/TeaVM.java index c126c71ad..1bc008e22 100644 --- a/core/src/main/java/org/teavm/vm/TeaVM.java +++ b/core/src/main/java/org/teavm/vm/TeaVM.java @@ -795,7 +795,9 @@ public class TeaVM implements TeaVMHost, ServiceRepository { dependencyAnalyzer.getClassHierarchy(), diagnostics); private Map cache = new HashMap<>(); private Set classNames = Collections.unmodifiableSet(new HashSet<>( - dependencyAnalyzer.getReachableClasses())); + dependencyAnalyzer.getReachableClasses().stream() + .filter(className -> dependencyAnalyzer.getClassSource().get(className) != null) + .collect(Collectors.toList()))); @Override public ClassHolder get(String name) {