-
Notifications
You must be signed in to change notification settings - Fork 3
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
Saving an empty collection throws IllegalArgumentException when it shouldn't #5
Comments
Stacktrace given when trying to save an empty list:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the CrudRepository docs the
<S extends T> Iterable<S> save(Iterable<S> entities)
method should only throw exception "in case the given entity is null". The Xap Spring Data implementation seems to throw the IllegalArgumentException when the argumentIterable<S> entities
is an empty list (when it should in fact not fail and do nothing).As a reference the MongoRepository implementation does not seem to throw an exception when an empty list is passed as argument.
The text was updated successfully, but these errors were encountered: