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

Add NPE check to property for MapGetExecutor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.1
    • 3.0
    • None
    • Patch

    Description

      From GitHub pull request #2 https://github.com/apache/commons-jexl/pull/2

      When the MapGetExecutor is init by the key null, the property of MapGetExecutor will be null.
      If the MapGetExecutor is cached and the key is changed (like map[index]), there will throw an NPE.
      I think the intention for the condition is to compare the class compatibility, so I add the NPE check here.

      Attachments

        Issue Links

          Activity

            People

              henrib Henri Biestro
              kinow Bruno P. Kinoshita
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: