You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/12/14 12:13:00 UTC
[jira] [Commented] (PDFBOX-5046) StringIndexOutOfBoundsException
when doing DateConverter.parseDate()
[ https://issues.apache.org/jira/browse/PDFBOX-5046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248940#comment-17248940 ]
ASF subversion and git services commented on PDFBOX-5046:
---------------------------------------------------------
Commit 1884415 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1884415 ]
PDFBOX-5046: catch more empty dates
> StringIndexOutOfBoundsException when doing DateConverter.parseDate()
> --------------------------------------------------------------------
>
> Key: PDFBOX-5046
> URL: https://issues.apache.org/jira/browse/PDFBOX-5046
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.21
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> Happens with "D: " as a date.
> {noformat}
> java.lang.StringIndexOutOfBoundsException: String index out of range: 16
> at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
> at java.base/java.lang.String.charAt(String.java:711)
> at org.apache.pdfbox.util.DateConverter.parseDate(DateConverter.java:656)
> at org.apache.pdfbox.util.DateConverter.toCalendar(DateConverter.java:724)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org