Skip to content

Commit

Permalink
'#1859 Avoid potential infinite loop on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Nov 9, 2023
1 parent 6f8feee commit 38221d2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ public Index(InputStream is, String path, List<IItemReader> dataFiles, List<IIte
try (InputStream naIS = na.getInputStream(dataFiles, externalFiles, null)) {
ce = new CacheEntry(naIS, dataFiles, externalFiles);
lst.add(ce);
} catch (Exception e) {
break;// avoid potential infinite loop
}
}
} catch (InputStreamNotAvailable e) {
Expand Down

0 comments on commit 38221d2

Please sign in to comment.