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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1.2, 3.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: