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

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

THausherr merged PR #2999:
URL: https://github.com/apache/tika/pull/2999




> NullPointerException when OCR parser getSupportedTypes returns null
> -------------------------------------------------------------------
>
>                 Key: TIKA-4811
>                 URL: https://issues.apache.org/jira/browse/TIKA-4811
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Leonid Gorshenev
>            Priority: Trivial
>             Fix For: 4.0.0, 3.3.3
>
>
> In {{{}doOCROnCurrentPage{}}}, {{ocrParser.getSupportedTypes(context)}} is 
> called directly before invoking {{{}.contains(ocrImageMediaType){}}}. If 
> third-party implementation of {{Parser}} returns null from 
> {{{}getSupportedTypes(ParseContext){}}}, such call results in an unhandled 
> NullPointerException rather than gracefully handling the missing media types 
> or throwing a meaningful Exception.



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

Reply via email to