-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: fix issue with Events sharing one context object. #143
Comments
Ouch good catch...
|
The Event builder is returning a single pointer to a context object, so Ecommerce Items end up sharing one context to the effect that if you process one item and update the context, this is reflected in the next item and so on. To fix this the Event class must pass a
new ArrayList<>(the context)
each time it is fetched so we do not end up with one context in memory.As you can see contexts have been added multiple times:
The text was updated successfully, but these errors were encountered: