Author: sergey
Date: Mon Aug 22 11:25:41 2011
New Revision: 1160207

URL: http://svn.apache.org/viewvc?rev=1160207&view=rev
Log:
do not interrupt if unable to process document title / meta(s)

Modified:
    
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java

Modified: 
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java?rev=1160207&r1=1160206&r2=1160207&view=diff
==============================================================================
--- 
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
 (original)
+++ 
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
 Mon Aug 22 11:25:41 2011
@@ -605,11 +605,20 @@ public abstract class AbstractWordConver
 
     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();



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to