diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-08-22 11:25:41 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-08-22 11:25:41 +0000 |
commit | f8d46f828fb86b3b4c4961322dd5f15e61d37ae3 (patch) | |
tree | 97fc5b15233ea0e8c8b7feb9f9ddc599f411281d | |
parent | 5cb7f5c8e57947a736161731f7520feb918296cc (diff) | |
download | poi-f8d46f828fb86b3b4c4961322dd5f15e61d37ae3.tar.gz poi-f8d46f828fb86b3b4c4961322dd5f15e61d37ae3.zip |
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
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java | 17 |
1 files 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 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(); |