Details
-
Test
-
Status: Resolved
-
Major
-
Resolution: Implemented
-
None
-
None
-
None
Description
When isExpressionLanguagePresent() is called from a customValidate() method in a processor during a unit test, a NullPointerException is thrown.
Inside that method in MockPropertyValue, a Boolean (not boolean) reference "expectExpressions" appears that expectExpressions has not yet been populated by the time isExpressionLanguagePresent() is called, and the if(!expectExpressions) clause results in an NPE.
Not sure if the fix is to change expectExpressions to be a boolean, or to allow for expectExpressions == null in isExpressionLanguagePresent(), or some third option to achieve the desired behavior while maintaining an accurate mock of true behavior.