You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2025/10/05 21:51:00 UTC
[jira] [Created] (TIKA-4505) CharsetDetector.getReader returns null when an exception documented
Claude Warren created TIKA-4505:
-----------------------------------
Summary: 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
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)