File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
org.eclipse.m2e.launching
src/org/eclipse/m2e/internal/launch Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
22Bundle-ManifestVersion : 2
33Bundle-Name : %Bundle-Name
44Bundle-SymbolicName : org.eclipse.m2e.launching;singleton:=true
5- Bundle-Version : 2.0.300 .qualifier
5+ Bundle-Version : 2.0.400 .qualifier
66Bundle-Localization : plugin
77Require-Bundle : org.eclipse.core.runtime,
88 org.eclipse.core.variables,
Original file line number Diff line number Diff line change 4444import org .eclipse .debug .core .ILaunch ;
4545import org .eclipse .debug .core .ILaunchConfiguration ;
4646import org .eclipse .debug .core .ILaunchConfigurationWorkingCopy ;
47+ import org .eclipse .jdt .core .JavaCore ;
4748import org .eclipse .jdt .launching .IJavaLaunchConfigurationConstants ;
4849import org .eclipse .jdt .launching .IVMInstall ;
4950import org .eclipse .jdt .launching .IVMInstall2 ;
@@ -228,7 +229,8 @@ public IVMInstall getVMInstall(ILaunchConfiguration configuration) throws CoreEx
228229 }
229230 }
230231 }
231- Optional <IProject > project = getContainer (pomDirectory ).map (IContainer ::getProject );
232+ Optional <IProject > project = getContainer (pomDirectory ).map (IContainer ::getProject )
233+ .filter (p -> JavaCore .create (p ).exists ());
232234 if (project .isPresent ()) {
233235 // Set the project name so that super.getVMInstall() called below, can find the JDT-Compiler JDK
234236 ILaunchConfigurationWorkingCopy workingCopy = configuration .getWorkingCopy ();
You can’t perform that action at this time.
0 commit comments