mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-19 20:25:45 +00:00
ensure non-null pathFromSeed to fix some unit tests
This commit is contained in:
@@ -301,7 +301,11 @@ implements Reporter, Serializable, OverlayContext {
|
||||
public CrawlURI(UURI u, String pathFromSeed, UURI via,
|
||||
LinkContext viaContext) {
|
||||
this.uuri = u;
|
||||
this.pathFromSeed = pathFromSeed;
|
||||
if (pathFromSeed != null) {
|
||||
this.pathFromSeed = pathFromSeed;
|
||||
} else {
|
||||
this.pathFromSeed = "";
|
||||
}
|
||||
this.via = via;
|
||||
this.viaContext = viaContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user