Skip to content

Commit

Permalink
fixed NPE introduced in NUTCH-762
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/nutch/trunk@926163 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jnioche committed Mar 22, 2010
1 parent 133cc06 commit ed601a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/org/apache/nutch/crawl/Generator.java
Expand Up @@ -480,7 +480,7 @@ public Path[] generate(Path dbDir, Path segments, int numLists, long topN,
LOG.info("Generator: topN: " + topN);
}

if (getConf().get(GENERATE_MAX_PER_HOST_BY_IP).equals("true")){
if ("true".equals(getConf().get(GENERATE_MAX_PER_HOST_BY_IP))){
LOG.info("Generator: GENERATE_MAX_PER_HOST_BY_IP will be ignored, use partition.url.mode instead");
}

Expand Down

0 comments on commit ed601a6

Please sign in to comment.