Skip to content

Commit 709b034

Browse files
another try/catch added
1 parent 834aea0 commit 709b034

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/java/pl/psnc/dl/ege/configuration/EGEConfigurationManager.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,13 +496,19 @@ public List<Properties> getProperties() {
496496
* Search for specified by regex file
497497
*/
498498
private void searchForData(File dir, String regex, List<File> files) {
499-
for (File f : dir.listFiles()) {
499+
try {
500+
for (File f : dir.listFiles()) {
500501
if (!f.isDirectory() && Pattern.matches(regex, f.getName())) {
501-
files.add(f);
502+
files.add(f);
502503
} else if (f.isDirectory()) {
503-
searchForData(f, regex, files);
504+
searchForData(f, regex, files);
504505
}
506+
}
505507
}
508+
catch (Exception e) {
509+
LOGGER.error(e.getMessage(), e);
510+
}
511+
506512
}
507513

508514
private static class PluginWrapper

0 commit comments

Comments
 (0)