Skip to content

Commit

Permalink
517028: ResourceException below CollectMissingNaturesVisitor.visit (t…
Browse files Browse the repository at this point in the history
…hrown in Project.checkAccessible)

Bug: 517028
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=517028
  • Loading branch information
creckord committed May 23, 2017
1 parent e782062 commit 782fa5c
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -24,9 +24,8 @@ final class CollectMissingNaturesVisitor implements IResourceDeltaVisitor {
private final Set<String> missingNatures = new HashSet<String>();

public boolean visit(IResourceDelta delta) throws CoreException {
if (delta.getResource().getType() == IResource.ROOT || (delta.getResource().getType() == IResource.PROJECT
&& ((IProject) delta.getResource()).isAccessible())) {
return true;
if (delta.getResource().getType() == IResource.ROOT || delta.getResource().getType() == IResource.PROJECT) {
return delta.getResource().isAccessible();
}
if (delta.getResource().getType() == IResource.FILE
&& IProjectDescription.DESCRIPTION_FILE_NAME
Expand Down

0 comments on commit 782fa5c

Please sign in to comment.