Ignore a failure during cloning if we exceed file-format limits

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2016-02-13 21:29:23 +00:00
parent b6de146895
commit eeee511f71

View File

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