Author: ab Date: Mon Sep 25 10:05:22 2006 New Revision: 449742 URL: http://svn.apache.org/viewvc?view=rev&rev=449742 Log: Don't create dummy Content (throws NPE), just pass null. Reported by Richard Braman.
Modified: lucene/nutch/branches/branch-0.8/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java Modified: lucene/nutch/branches/branch-0.8/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java URL: http://svn.apache.org/viewvc/lucene/nutch/branches/branch-0.8/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java?view=diff&rev=449742&r1=449741&r2=449742 ============================================================================== --- lucene/nutch/branches/branch-0.8/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java (original) +++ lucene/nutch/branches/branch-0.8/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java Mon Sep 25 10:05:22 2006 @@ -193,9 +193,7 @@ // skip this page, otherwise the thread would block for too long. LOGGER.info("Skipping: " + u + " exceeds fetcher.max.crawl.delay, max=" + (maxCrawlDelay / 1000) + ", Crawl-Delay=" + (delay / 1000)); - Content c = new Content(u.toString(), u.toString(), EMPTY_CONTENT, - null, null, this.conf); - return new ProtocolOutput(c, ProtocolStatus.STATUS_WOULDBLOCK); + return new ProtocolOutput(null, ProtocolStatus.STATUS_WOULDBLOCK); } String host; try {