From: Sergey Vladimirov Date: Mon, 22 Aug 2011 11:25:41 +0000 (+0000) Subject: do not interrupt if unable to process document title / meta(s) X-Git-Tag: REL_3_8_BETA4~1^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8d46f828fb86b3b4c4961322dd5f15e61d37ae3;p=poi.git 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 --- 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 5da89f3afe..d57bb9299d 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 + { + 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();