Fix minor bugs

This commit is contained in:
Alexey Andreev 2014-09-25 18:22:16 +04:00
parent 7a02804544
commit 8696bff1cd
3 changed files with 7 additions and 3 deletions

View File

@ -108,7 +108,9 @@ public class MethodDependency implements MethodDependencyInfo {
public void use() {
if (!used) {
used = true;
if (!isMissing()) {
dependencyChecker.scheduleMethodAnalysis(this);
}
}
}
}

View File

@ -442,7 +442,7 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
}
}
IContainer srcContainer = (IContainer)workspaceRoot.findMember(entry.getPath());
if (srcContainer.getProject() == project) {
if (srcContainer != null && srcContainer.getProject() == project) {
srcCollector.addContainer(srcContainer);
}
break;

View File

@ -15,6 +15,8 @@
*/
package org.teavm.eclipse.debugger;
import org.teavm.eclipse.TeaVMEclipsePlugin;
/**
*
* @author Alexey Andreev
@ -25,5 +27,5 @@ public final class TeaVMDebugConstants {
public static final String JAVA_BREAKPOINT_INSTALL_COUNT = "org.eclipse.jdt.debug.core.installCount";
public static final String DEBUG_TARGET_ID = "org.teavm.eclipse.debugger";
public static final String DEBUG_TARGET_ID = TeaVMEclipsePlugin.ID + ".debugger";
}