diff --git a/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java b/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java index f711ae3d2..b67a1196d 100644 --- a/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java +++ b/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java @@ -475,7 +475,10 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder { case IClasspathEntry.CPE_SOURCE: if (entry.getOutputLocation() != null) { try { - collector.addPath(workspaceRoot.findMember(entry.getOutputLocation()).getLocation()); + IResource res = workspaceRoot.findMember(entry.getOutputLocation()); + if (res != null) { + collector.addPath(res.getLocation()); + } } catch (MalformedURLException e) { TeaVMEclipsePlugin.logError(e); }