You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ab...@apache.org on 2006/09/25 18:58:49 UTC
svn commit: r449738 -
/lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
Author: ab
Date: Mon Sep 25 09:58:49 2006
New Revision: 449738
URL: http://svn.apache.org/viewvc?view=rev&rev=449738
Log:
Don't create dummy Content (throws NPE), just pass null. Reported by
Richard Braman.
Modified:
lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
Modified: lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java?view=diff&rev=449738&r1=449737&r2=449738
==============================================================================
--- lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java (original)
+++ lucene/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java Mon Sep 25 09:58:49 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 {