[
https://issues.apache.org/jira/browse/TIKA-4505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028014#comment-18028014
]
Philipp Ottlinger commented on TIKA-4505:
-----------------------------------------
We fixed it on the RAT side as well, thanks. Next release will hopefully work
with newer Tika versions.
> CharsetDetector.getReader returns null when an exception documented
> -------------------------------------------------------------------
>
> Key: TIKA-4505
> URL: https://issues.apache.org/jira/browse/TIKA-4505
> Project: Tika
> Issue Type: Bug
> Components: documentation
> Affects Versions: 2.9.2
> Reporter: Claude Warren
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 4.0.0, 3.3.0
>
> Attachments: GQBOZYKKDEXTGJKCNZMYB5NIGXGDVTX2-spaced.pdf
>
>
> The CharsetDetector.getReader() javadoc states that it will "Raise an
> exception if no charsets appear to match the input data."
> However, if CharsetDetector.detect() returns null, null is returned from the
> method.
> In addition, if an IOException occurs it is caught and null is returned from
> the method.
> The documentation does not reference null as a possible return value.
> This is the underlying cause of an issue in RAT.
> https://issues.apache.org/jira/browse/RAT-494 where a document is mentioned.
> I have requested access to the document in question, if I get access and have
> permission to distribute the file I will attach it here if you wish.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)