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

Hudson commented on TIKA-4505:
------------------------------

SUCCESS: Integrated in Jenkins build Tika » tika-branch_3x-jdk11 #2239 (See 
[https://ci-builds.apache.org/job/Tika/job/tika-branch_3x-jdk11/2239/])
TIKA-4505: fix javadoc (tilman: 
[https://github.com/apache/tika/commit/5b11c9d2549e04a1927983187de7d35c1af933d8])
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/txt/CharsetDetector.java


> 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
>            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)

Reply via email to