From 812f5834120aa19d191aecfae4911838906d156e Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 22 Aug 2011 11:25:41 +0000 Subject: [PATCH] do not interrupt if unable to process document title / meta(s) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160207 13f79535-47bb-0310-9956-ffa450edef68 --- .../hwpf/converter/AbstractWordConverter.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java index 5da89f3af..d57bb9299 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java @@ -605,11 +605,20 @@ public abstract class AbstractWordConverter public void processDocument( HWPFDocumentCore wordDocument ) { - final SummaryInformation summaryInformation = wordDocument - .getSummaryInformation(); - if ( summaryInformation != null ) + try { - processDocumentInformation( summaryInformation ); + final SummaryInformation summaryInformation = wordDocument + .getSummaryInformation(); + if ( summaryInformation != null ) + { + processDocumentInformation( summaryInformation ); + } + } + catch ( Exception exc ) + { + logger.log( POILogger.WARN, + "Unable to process document summary information: ", exc, + exc ); } final Range docRange = wordDocument.getRange();