You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have struggled with making inner joins and registering bean mappers to load nested objects in another project and i decided to make a proof of concept project (https://github.com/jarlah/jdbi3-nested-innerjoin-example/tree/main) for what I am struggling with. It's very very basic, and I hope it's something really stupid I have done wrong on my side and not a bug.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.27 s <<< FAILURE! -- in com.example.jdbi3.NestedObjectTest
[ERROR] com.example.jdbi3.NestedObjectTest.test -- Time elapsed: 0.198 s <<< ERROR!
java.lang.NullPointerException: Cannot read field "id" because "java.util.List.get(int).nestedStuff" is null
at com.example.jdbi3.NestedObjectTest.test(NestedObjectTest.java:46)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
I have struggled with making inner joins and registering bean mappers to load nested objects in another project and i decided to make a proof of concept project (https://github.com/jarlah/jdbi3-nested-innerjoin-example/tree/main) for what I am struggling with. It's very very basic, and I hope it's something really stupid I have done wrong on my side and not a bug.
see failing test and code here https://github.com/jarlah/jdbi3-nested-innerjoin-example/blob/main/src/test/java/com/example/jdbi3/NestedObjectTest.java#L24
(the github workflow fails for something completely different. the test fails properly locally)
If there is an existing issue for this problem just close this issue
The text was updated successfully, but these errors were encountered: