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
Npe while gettings shadows #560
Comments
Okay, could you please post the full code needed to reproduce this NPE? |
i am guessing it is about setting from/to fields.Because if i comment out setting from/to,no exception is thrown.i will try to prepare test case to reproduce the situation. |
the problem is commitsMap is empty while trying to append CommitEntry like; |
Okay, waiting for the test case |
Hello Bartos, |
Use three backticks to format code :) |
Hello , |
We cant start without a failing test case, please push it to your fork of javers repository |
Okay,i may sound noob,but i pulled your master branch and prepared a test case.How do i send merge request? |
ok, now I can reproduce it on my machine, we will fix the bug |
fix released in 3.3.4 |
Hello,
I am getting NullPointerException while trying to get shadows of an entity.
I build the query with instanceId and with parameter shadowscopedeep.And i have 'to' parameter set,as i want the latest shadow (if exist) till the provided time.(My javers version is 3.3.2)
This is how i call it;
` DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
And here is the stacktrace:
Caused by: java.lang.NullPointerException at org.javers.repository.jql.ShadowQueryRunner$CommitTable.lambda$loadFullCommits$78(ShadowQueryRunner.java:94) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) at org.javers.repository.jql.ShadowQueryRunner$CommitTable.loadFullCommits(ShadowQueryRunner.java:94) at org.javers.repository.jql.ShadowQueryRunner.queryForShadows(ShadowQueryRunner.java:36) at org.javers.repository.jql.QueryRunner.queryForShadows(QueryRunner.java:40) at org.javers.core.JaversCore.findShadows(JaversCore.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
The text was updated successfully, but these errors were encountered: