Author: jnioche Date: Mon Mar 22 16:29:30 2010 New Revision: 926163 URL: http://svn.apache.org/viewvc?rev=926163&view=rev Log: fixed NPE introduced in NUTCH-762
Modified: lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java Modified: lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java?rev=926163&r1=926162&r2=926163&view=diff ============================================================================== --- lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java (original) +++ lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java Mon Mar 22 16:29:30 2010 @@ -480,7 +480,7 @@ public class Generator extends Configure 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"); }