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
Null list item causes failure #676
Comments
hi, could you reproduce it in a failing test case? |
If I have a domain object like this: @Document
public class Customer {
@Id
private String id;
private List<Order> orders;
// getters/setters
} public class Order {
private String orderNumber;
// getters/setters
} Then this test will fail with an exception: @SpringJUnitConfig
@SpringBootTest
class CustomerTest {
@Autowired
CustomerRepository customerRepository;
@Test
void test() {
Customer customer = new Customer();
customer.setOrders(Arrays.asList(null, null));
customerRepository.save(customer);
}
} |
bartoszwalacik
added a commit
that referenced
this issue
May 11, 2018
fixed in 3.9.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Javers with MongoDB. I have an object with a field that is a
List
. If theList
contains an entry that isnull
, then I get the following exception:The text was updated successfully, but these errors were encountered: