Skip to content
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

You must validate collection size #254

Open
ig0rix opened this issue Apr 1, 2019 · 0 comments
Open

You must validate collection size #254

ig0rix opened this issue Apr 1, 2019 · 0 comments

Comments

@ig0rix
Copy link

ig0rix commented Apr 1, 2019

Please fix code like this:

return Optional.fromNullable(getConversationPartCollection().getPage().get(0));

You must validate collection size before call ...get(0) Оtherwise it will be java.lang.ArrayIndexOutOfBoundsException: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant