Skip to content

Commit

Permalink
[builder] handle inexistent configured paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdu committed Nov 4, 2016
1 parent 340b270 commit c449ea1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ public Collection<IPath> getIncludeDirs(final IProject project,
includeDirs.add(incPath);
} else {
final IFolder folder = project.getFolder(incPath);
if (folder != null) {
if (folder != null && folder.exists()) {
final IPath location = folder.getLocation();
if (location != null) {
includeDirs.add(location);
} else {
ErlLogger.warn("No location for %s", folder);
}
} else {
ErlLogger.warn("Inexistent location for %s", folder);
}
}
}
Expand Down

0 comments on commit c449ea1

Please sign in to comment.