Skip to content

Commit

Permalink
TIKA-4311: avoid potential ClassCastException
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Sep 17, 2024
1 parent e0c1d1d commit a73ebf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private void detectAnglesAndProcessPage(PDPage page) throws IOException {
}

// remove transformation
COSArray contents = (COSArray) page.getCOSObject().getItem(COSName.CONTENTS);
COSArray contents = page.getCOSObject().getCOSArray(COSName.CONTENTS);
contents.remove(0);
}
}
Expand Down

0 comments on commit a73ebf5

Please sign in to comment.