fix for crawler attribute maxdompages

pull/1/head
Michael Peter Christen 10 years ago
parent 49d91b94c3
commit 66106bdaf0

@ -226,7 +226,13 @@ public class CrawlProfile extends ConcurrentHashMap<String, String> implements M
}
public AtomicInteger getCount(final String domain) {
return this.doms.get(domain);
AtomicInteger dp = this.doms.get(domain);
if (dp == null) {
// new domain
dp = new AtomicInteger(0);
this.doms.put(domain, dp);
}
return dp;
}
/**

Loading…
Cancel
Save