[
https://issues.apache.org/jira/browse/TIKA-4811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved TIKA-4811.
-----------------------------------
Assignee: Tilman Hausherr
Resolution: Fixed
Thanks!
> 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
> Affects Versions: 2.9.4, 3.3.2
> Reporter: Leonid Gorshenev
> Assignee: Tilman Hausherr
> 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)