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
This commit is contained in:
Sergey Vladimirov 2011-08-22 11:25:41 +00:00
parent 583fb49254
commit 812f583412

View File

@ -604,6 +604,8 @@ public abstract class AbstractWordConverter
} }
public void processDocument( HWPFDocumentCore wordDocument ) public void processDocument( HWPFDocumentCore wordDocument )
{
try
{ {
final SummaryInformation summaryInformation = wordDocument final SummaryInformation summaryInformation = wordDocument
.getSummaryInformation(); .getSummaryInformation();
@ -611,6 +613,13 @@ public abstract class AbstractWordConverter
{ {
processDocumentInformation( summaryInformation ); processDocumentInformation( summaryInformation );
} }
}
catch ( Exception exc )
{
logger.log( POILogger.WARN,
"Unable to process document summary information: ", exc,
exc );
}
final Range docRange = wordDocument.getRange(); final Range docRange = wordDocument.getRange();