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

@ -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();