From 7da1e61a8f0916d2c56e09932b0e053cee9d4f3d Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Mon, 3 Nov 2014 19:39:05 +0300 Subject: [PATCH] Fix https://github.com/konsoletyper/teavm/issues/34 --- .../src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }