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
{{ message }}
Repository navigation
java.lang.IllegalArgumentException: argument should not be null when comparing objects with nested hashes #1269
I have two objects that have member Maps that when one Map has a key/value pair with a null value, I get an exception java.lang.IllegalArgumentException: argument should not be null when I call javers.compare() on the two objects. I think this case should be covered by Javers, but I wanted to report it in case others hit it.
Steps To Reproduce
Apologies for inlining the test case, but thankfully it is quite simple
Activity
bartoszwalacik commentedon Mar 5, 2023
Thanks for reporting, this is quite easy to fix, entries with null values should be ignored while comparing. Feel free to contribute a PR with the fix
rh-id commentedon Jun 3, 2023
Hi @bartoszwalacik I helped create PR to fix this issue, please help review it.
[gh-1269] Fix map entry comparison throwing java.lang.IllegalArgument…
[gh-1269] Fix map entry comparison throwing java.lang.IllegalArgument…
bartoszwalacik commentedon Jul 28, 2023
this fix was released in 7.3.1, thanks @noahhaon