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

EnumerationNameColumnType fails with vague exception when unknown value in DB #1176

Closed
peter-plochan opened this issue Feb 19, 2021 · 0 comments

Comments

@peter-plochan
Copy link

Now, when there's an unknown value (not defined enum value) in the database, the select on EnumerationNameColumnType fails with the error:

NoSuchElementException: Array contains no element matching the predicate

This is caused by using the collections#first function here. Please, consider to use find or firstOrNull and throw more reasonable error instead. Thanks.

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

2 participants