poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1138834 - in /poi/trunk/src: documentation/content/xdocs/status.xml scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java
Date Thu, 23 Jun 2011 11:21:05 GMT
Author: yegor
Date: Thu Jun 23 11:21:05 2011
New Revision: 1138834

URL: http://svn.apache.org/viewvc?rev=1138834&view=rev
Log:
Bug 51424 - Ignore exceptions in ParagraphSprmUncompressor

Modified:
    poi/trunk/src/documentation/content/xdocs/status.xml
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=1138834&r1=1138833&r2=1138834&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Thu Jun 23 11:21:05 2011
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.8-beta4" date="2011-??-??">
+           <action dev="poi-developers" type="add">51424 - Ignore exceptions in ParagraphSprmUncompressor</action>
            <action dev="poi-developers" type="fix">51415 - Fixed Workbook.createSheet(sheetName)
to truncate names longer than 31 characters</action>
            <action dev="poi-developers" type="fix">51332 - Fixed internal IDs of shapes
generated by HSSFPatriarch when there are more than 1023 drawing objects </action>
            <action dev="poi-developers" type="fix">48408 - Improved documentation for
Sheet.setColumnWidth </action>

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java?rev=1138834&r1=1138833&r2=1138834&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java Thu
Jun 23 11:21:05 2011
@@ -24,6 +24,8 @@ import org.apache.poi.hwpf.usermodel.Lin
 import org.apache.poi.hwpf.usermodel.ShadingDescriptor;
 import org.apache.poi.hwpf.usermodel.DropCapSpecifier;
 import org.apache.poi.util.LittleEndian;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
 
 import java.util.HashMap;
 import java.util.Iterator;
@@ -33,6 +35,9 @@ import java.util.ArrayList;
 public final class ParagraphSprmUncompressor
   extends SprmUncompressor
 {
+    private static final POILogger logger = POILogFactory
+            .getLogger( ParagraphSprmUncompressor.class );
+
   public ParagraphSprmUncompressor()
   {
   }
@@ -60,7 +65,17 @@ public final class ParagraphSprmUncompre
       // table row
       if (sprm.getType() == SprmOperation.PAP_TYPE)
       {
-        unCompressPAPOperation(newProperties, sprm);
+          try
+          {
+              unCompressPAPOperation( newProperties, sprm );
+          }
+          catch ( Exception exc )
+          {
+              logger.log(
+                      POILogger.ERROR,
+                      "Unable to apply SPRM operation '"
+                              + sprm.getOperation() + "': ", exc );
+          }
       }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message