Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2017-10-06 22:15:08 -0400
committerFred Bricon2017-10-06 22:15:08 -0400
commitf66704b877e3b22fd3fe845a559f870a34e0add5 (patch)
treedf5b6d1e7c20eab6257235001f0d3a837bbfc53d /org.eclipse.m2e.jdt
parent63e7b680ffd81fe7802c667fb1c077e46a6a74ca (diff)
downloadm2e-core-f66704b877e3b22fd3fe845a559f870a34e0add5.tar.gz
m2e-core-f66704b877e3b22fd3fe845a559f870a34e0add5.tar.xz
m2e-core-f66704b877e3b22fd3fe845a559f870a34e0add5.zip
525609 : ensure javaproject exists before checking for module description
Change-Id: I5da22d53f7247f49a5b582bb218eebd9731c5f4f Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.jdt')
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
index 8a4e08d1..5b740236 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/InternalModuleSupport.java
@@ -68,6 +68,9 @@ class InternalModuleSupport {
public static void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath,
IProgressMonitor monitor) throws CoreException {
IJavaProject javaProject = JavaCore.create(facade.getProject());
+ if(javaProject == null || !javaProject.exists()) {
+ return;
+ }
IModuleDescription moduleDescription = javaProject.getModuleDescription();
if(!(moduleDescription instanceof AbstractModule)) {
return;

Back to the top