Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-131

UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1.2, 3.0
    • None

    Description

      From Clay Bruce email:
      the offending code is the method startsWith which can be found at line 1345 in UnifiedJEXL.java.
      Problem is that sequence is not tested to see if the index is available before trying to access it.

      A source with lines starting with leading spaces will trigger the bug.

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: