Skip to content

Commit

Permalink
PDFBOX-5652: avoid IllegalArgumentException and skip instead
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1911629 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Aug 13, 2023
1 parent 35b4ca0 commit f81c484
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ private void extractDataFromSingleSubstTableFormat2Table(

if (coverageTable.getSize() != singleSubstTableFormat2.getSubstituteGlyphIDs().length)
{
throw new IllegalArgumentException(
"The no. coverage table entries should be the same as the size of the substituteGlyphIDs");
LOG.warn("The no. coverage table entries should be the same as the size of the substituteGlyphIDs");
return;
}

for (int i = 0; i < coverageTable.getSize(); i++)
Expand All @@ -242,8 +242,8 @@ private void extractDataFromMultipleSubstitutionFormat1Table(

if (coverageTable.getSize() != multipleSubstFormat1Subtable.getSequenceTables().length)
{
throw new IllegalArgumentException(
"The no. coverage table entries should be the same as the size of the sequencce tables");
LOG.warn("The no. coverage table entries should be the same as the size of the sequencce tables");
return;
}

for (int i = 0; i < coverageTable.getSize(); i++)
Expand Down

0 comments on commit f81c484

Please sign in to comment.