Handle non-existent files
This commit is contained in:
@@ -66,6 +66,7 @@ public class LibrarySourcesConfig extends Config {
|
|||||||
String moduleName = UNKNOWN_EXTERNAL_MODULE_NAME;
|
String moduleName = UNKNOWN_EXTERNAL_MODULE_NAME;
|
||||||
for (String path : files) {
|
for (String path : files) {
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
|
if (!file.exists()) continue; // The path here may be copying from a library root configuration, i.e. may be absent
|
||||||
try {
|
try {
|
||||||
String name = file.getName();
|
String name = file.getName();
|
||||||
if (path.charAt(0) == '@') {
|
if (path.charAt(0) == '@') {
|
||||||
@@ -83,7 +84,7 @@ public class LibrarySourcesConfig extends Config {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
LOG.error(e);
|
LOG.error("While processing " + file, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user