cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hu...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search SimpleLuceneCocoonIndexerImpl.java
Date Sun, 14 Dec 2003 20:59:08 GMT
huber       2003/12/14 12:59:08

  Modified:    src/blocks/lucene/java/org/apache/cocoon/components/search
                        SimpleLuceneCocoonIndexerImpl.java
  Log:
  fix Bugzilla Bug 25270
  
  Revision  Changes    Path
  1.5       +6 -3      cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
  
  Index: SimpleLuceneCocoonIndexerImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SimpleLuceneCocoonIndexerImpl.java	12 Dec 2003 08:14:41 -0000	1.4
  +++ SimpleLuceneCocoonIndexerImpl.java	14 Dec 2003 20:59:08 -0000	1.5
  @@ -216,8 +216,11 @@
               Iterator cocoonCrawlerIterator = cocoonCrawler.iterator();
               while (cocoonCrawlerIterator.hasNext()) {
                   URL crawl_url = (URL) cocoonCrawlerIterator.next();
  -
  -                if (!crawl_url.getHost().equals(base_url.getHost()) ||
  +                // result of fix Bugzilla Bug 25270, in SimpleCocoonCrawlerImpl
  +                // check if crawl_url is null
  +                if (crawl_url == null) {
  +                    continue;
  +                } else if (!crawl_url.getHost().equals(base_url.getHost()) ||
                           crawl_url.getPort() != base_url.getPort()) {
   
                       // skip urls using different host, or port than host,
  
  
  

Mime
View raw message