ensure non-null pathFromSeed to fix some unit tests

This commit is contained in:
Noah Levitt committed 2014-07-07 12:25:27 -07:00
1 parent 3c2e1315bb
commit bfac3c8bbc
1 file changed
+5 -1
@@ -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;
}