Project: mule
Issue MULE-6959: Race condition creating MVELExpressionLanguage instances
Constructor of MVELExpressionLanguage is updating the expression language configured in the DefaultExpressionManager. This creates a reace condition when there are more than one instance created and multiple threads using the expression manager. In those cases, some threads can get a NPE. This is a problem using Data Mapper as they extend the MVELExpressionLanguage. There is a second problem having MVELExpressionLanguage constructor setting the expression language: after a DM component, the expression language use in the app will continue to be the expression language from DM, not the original mvel
Story points: 5