Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1025

ArrayIndexOutOfBoundsException in TextLineBreaks.findLineBrk

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: GVT Text
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      A mix of Thai (I think?) and english text causes ArrayIndexOutOfBoundsException in TextLineBreaks.findLineBrk

      The text I'm using is:
      จัดทำ Master Plan

      The error occurs here:
      org.apache.batik.gvt.flow.TextLineBreaks.findLineBrk(TextLineBreaks.java:177)

      byte brk = brkPairs[cls][curCls];

      cls is 20 but the array only has 20 elements.

      Hope that makes sense.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              tae.kim@smartsheet.com Tae Kim
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: