Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.1
-
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
- is related to
-
JEXL-221 Sporadic undefined property error caused by NPE at MapGetExecutor.tryInvoke()
- Closed
- links to