]> source.dussan.org Git - poi.git/commitdiff
Ignore a failure during cloning if we exceed file-format limits
authorDominik Stadler <centic@apache.org>
Sat, 13 Feb 2016 21:29:23 +0000 (21:29 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 13 Feb 2016 21:29:23 +0000 (21:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730273 13f79535-47bb-0310-9956-ffa450edef68

src/integrationtest/org/apache/poi/stress/SpreadsheetHandler.java

index 243679d03dbaa3eebfb270c60352524e7885faa6..49a74d06d133d29bc0ab0f89d9122332258b439b 100644 (file)
@@ -105,10 +105,11 @@ public abstract class SpreadsheetHandler extends AbstractFileHandler {
                    }
                    throw e;
                } catch (RuntimeException e) {
-                   if ("Could not find 'internal references' EXTERNALBOOK".equals(e.getMessage())) {
+                   if ("Could not find 'internal references' EXTERNALBOOK".equals(e.getMessage()) ||
+                           "CountryRecord not found".equals(e.getMessage()) ||
+                           "Cannot add more than 65535 shapes".equals(e.getMessage()) ) {
+                       // ignore these here for now
                        continue;
-                   } else if ("CountryRecord not found".equals(e.getMessage())) {
-                    continue;
                 }
                    throw e;
                }