jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r666098 - /jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java
Date Tue, 10 Jun 2008 13:24:50 GMT
Author: mreutegg
Date: Tue Jun 10 06:24:50 2008
New Revision: 666098

URL: http://svn.apache.org/viewvc?rev=666098&view=rev
Log:
JCR-1646: NPE in OpenOfficeTextExtractor

Modified:
    jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java

Modified: jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java?rev=666098&r1=666097&r2=666098&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java
(original)
+++ jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/OpenOfficeTextExtractor.java
Tue Jun 10 06:24:50 2008
@@ -75,7 +75,7 @@
 
             ZipInputStream zis = new ZipInputStream(stream);
             ZipEntry ze = zis.getNextEntry();
-            while (!ze.getName().equals("content.xml")) {
+            while (ze != null && !ze.getName().equals("content.xml")) {
                 ze = zis.getNextEntry();
             }
 



Mime
View raw message