Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2013-09-17 08:51:40 -0400
committerFred Bricon2013-09-17 08:51:40 -0400
commitc0515996aedb6c749b7903e4d408267452387019 (patch)
tree66430b039841eff31bf832882a6046b926dd7207
parent887818f27ca5415fcdfbe55be4ec07ae2187c60d (diff)
downloadm2e-core-c0515996aedb6c749b7903e4d408267452387019.tar.gz
m2e-core-c0515996aedb6c749b7903e4d408267452387019.tar.xz
m2e-core-c0515996aedb6c749b7903e4d408267452387019.zip
416050 : check project accessibility
Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
index d5ca29a2..faa0704b 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
@@ -230,7 +230,7 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
private boolean isMavenProject(IProject project) {
try {
- return project != null && project.hasNature(IMavenConstants.NATURE_ID);
+ return project != null && project.isAccessible() && project.hasNature(IMavenConstants.NATURE_ID);
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
}

Back to the top