Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5046

StringIndexOutOfBoundsException when doing DateConverter.parseDate()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.21
    • Fix Version/s: 2.0.22, 3.0.0 PDFBox
    • Component/s: None
    • Labels:
      None

      Description

      Happens with "D: " as a date.

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: