You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2026/08/10 08:56:00 UTC
[jira] [Updated] (TIKA-4811) NullPointerException when OCR parser getSupportedTypes returns null
[ https://issues.apache.org/jira/browse/TIKA-4811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated TIKA-4811:
----------------------------------
Fix Version/s: 3.3.3
> NullPointerException when OCR parser getSupportedTypes returns null
> -------------------------------------------------------------------
>
> Key: TIKA-4811
> URL: https://issues.apache.org/jira/browse/TIKA-4811
> Project: Tika
> Issue Type: Bug
> Reporter: Leonid Gorshenev
> Priority: Trivial
> Fix For: 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)