Hi, after reading all the docus, I wasn't really sure if you are interested in such small patches. I don't need credits for it, it was just a nasty NullPointerException due to a null==contentType in
org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java which I don't get anymore after applying this patch. but the contentType is still null :-(, but that's another issue. so I hope this email will help to remove a small bug best wishes Kristian -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Index: xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java =================================================================== RCS file: /home/cvspublic/xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java,v retrieving revision 1.10 diff -u -r1.10 SimpleLuceneXMLIndexerImpl.java --- xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java 13 Jun 2002 09:28:15 -0000 1.10 +++ +xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java + 22 Jul 2002 20:37:54 -0000 @@ -175,10 +175,12 @@ URLConnection contentURLConnection = contentURL.openConnection(); String contentType = contentURLConnection.getContentType(); - int index = contentType.indexOf(';'); - if (contentType != null && index != -1) { + if (contentType != null ) { + int index = contentType.indexOf(';'); + if (index != -1) { contentType = contentType.substring(0, index); - } + } + } if (contentType != null && allowedContentType.contains(contentType)) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]