Skip to content

Commit

Permalink
Merge pull request #798 from GabeHaegele/NUTCH-2812
Browse files Browse the repository at this point in the history
fix for NUTCH-2812 contributed by GabeHaegele
  • Loading branch information
sebastian-nagel authored Sep 17, 2024
2 parents 8b11962 + 0765367 commit c137b4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/java/org/apache/nutch/fetcher/FetchNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ public void setUrl(Text url) {
this.url = url;
}
public Outlink[] getOutlinks() {
Outlink[] copyOutlinks = new Outlink[outlinks.length];
for (int i = copyOutlinks.length-1; i>=0; i--) {
Outlink o = outlinks[i];
if (o != null) {
copyOutlinks[i] = new Outlink(o.getToUrl(), o.getAnchor());
}
}
return outlinks;
}
public void setOutlinks(Outlink[] links) {
Expand Down

0 comments on commit c137b4e

Please sign in to comment.