[ 
https://issues.apache.org/jira/browse/TIKA-4727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18087653#comment-18087653
 ] 

ASF GitHub Bot commented on TIKA-4727:
--------------------------------------

Copilot commented on code in PR #2885:
URL: https://github.com/apache/tika/pull/2885#discussion_r3380637875


##########
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/HSLFExtractor.java:
##########
@@ -614,7 +614,13 @@ private void collectPictureSlides(ShapeContainer 
container, int slideNum,
         }
         for (HSLFShape shape : shapes) {
             if (shape instanceof HSLFPictureShape) {
-                HSLFPictureData pd = ((HSLFPictureShape) 
shape).getPictureData();
+                HSLFPictureData pd;
+                try {
+                    pd = ((HSLFPictureShape) shape).getPictureData();
+                } catch (Exception e) {
+                    // corrupt Escher BSE record 

> Numerous tweaks in 4.x
> ----------------------
>
>                 Key: TIKA-4727
>                 URL: https://issues.apache.org/jira/browse/TIKA-4727
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Tim Allison
>            Priority: Minor
>
> In putting together a demo for the Haystack conference, I made a number of 
> small changes to a demo branch. I'm opening separate logical prs for each 
> area. I didn't think it beneficial to spam our Jira with a separate issue for 
> each PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to