Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Object mapping does not work with lists #28

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

Closed
psaikkonen opened this issue Dec 10, 2019 · 0 comments
Closed

Object mapping does not work with lists #28

psaikkonen opened this issue Dec 10, 2019 · 0 comments
Assignees
Labels

Comments

@psaikkonen
Copy link
Contributor

HelperFunctions useMappedObjects(List<Object> list) throws IndexOutOfBoundsExceptions when it tries to add values to the list which will be returned. This happens because the list with replaced values gets initialized as empty and the value is being added using lists set method, which requires an existing item in the given index. Since the list is empty an IndexOutOfBoundsException gets thrown.

This can also cause some odd behaviour with exception handling when it is combined with waitUntil keywords, resulting in massive amounts of seemingly random exception output in logs.

@psaikkonen psaikkonen self-assigned this Dec 10, 2019
@sampeson sampeson added the 0.5.4 label Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants