Skip to content

Commit

Permalink
LinkTest: fix NPE due to concurrent use of TreeMap #155
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Jun 17, 2023
1 parent 29d70cf commit ad5b79f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void addHits(List<SearchHit> hits, String wordsSearched) {

Set<String> linkFailures = Collections.synchronizedSet(new TreeSet<>());
Set<Exception> ex = Collections.synchronizedSet(new LinkedHashSet<>());
Set<URI> allKnownPageURIs = new TreeSet<>(indexedPagesURIs);
Set<URI> allKnownPageURIs = Collections.synchronizedSet(new TreeSet<>(indexedPagesURIs));
indexedPagesURIs.parallelStream().forEach(t -> {
String path = t.getPath();
if (path.lastIndexOf('/') > 0) {
Expand Down

0 comments on commit ad5b79f

Please sign in to comment.