Don't forget to dispose wizard page image

This commit is contained in:
aboyko
2023-01-17 10:15:22 -05:00
parent 5ac79698c4
commit 2063ff438e
2 changed files with 12 additions and 9 deletions

View File

@@ -84,16 +84,18 @@ public class BootProjectTracker {
}
private boolean isSpringProject(IJavaProject jp) {
try {
IClasspathEntry[] classpath = jp.getResolvedClasspath(true);
//Look for a 'spring-core' jar or project entry
for (IClasspathEntry e : classpath) {
if (isBootJar(e) || isBootProject(e)) {
return true;
if (jp.exists()) {
try {
IClasspathEntry[] classpath = jp.getResolvedClasspath(true);
//Look for a 'spring-core' jar or project entry
for (IClasspathEntry e : classpath) {
if (isBootJar(e) || isBootProject(e)) {
return true;
}
}
} catch (JavaModelException e) {
logger.log(e);
}
} catch (JavaModelException e) {
logger.log(e);
}
return false;
}