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 {



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to