]> source.dussan.org Git - poi.git/commitdiff
do not interrupt if unable to process document title / meta(s)
authorSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 11:25:41 +0000 (11:25 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 11:25:41 +0000 (11:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160207 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java

index 5da89f3afe5cfab10728e41d8338b78f83b38b0a..d57bb9299db811465aeb2324e6d7e51447704fea 100644 (file)
@@ -605,11 +605,20 @@ public abstract class AbstractWordConverter
 
     public void processDocument( HWPFDocumentCore wordDocument )
     {
-        final SummaryInformation summaryInformation = wordDocument
-                .getSummaryInformation();
-        if ( summaryInformation != null )
+        try
+        {
+            final SummaryInformation summaryInformation = wordDocument
+                    .getSummaryInformation();
+            if ( summaryInformation != null )
+            {
+                processDocumentInformation( summaryInformation );
+            }
+        }
+        catch ( Exception exc )
         {
-            processDocumentInformation( summaryInformation );
+            logger.log( POILogger.WARN,
+                    "Unable to process document summary information: ", exc,
+                    exc );
         }
 
         final Range docRange = wordDocument.getRange();