Open xstex opened 3 years ago
@xstex thank you for reaching out. I've run your code sample and I'm seeing two issues:
getItem()
does not contain a chapters
map. That's why calling the DynamoDB Enhanced client putItem()
does not throw any exception, but the new added book item only contains id
and the "First" -> null map is lost.getItem()
contains both id
and chapters
as expected, but calling putItem()
is throwing a null pointer exception.I'm still investigating what can be the cause.
We currently do have the same issue. Are there any updates on this topic?
I think that I found sth. that could have caused the issue. When looking into the Delegate
of the MapAttributeConverter
, then it seems like that it is not considering that the value could be null
in the toAttributeValue()
function. I might be able to contribute a fix, but I probably won't find time to work on that topic before Tuesday
Any progres on that bug?
A null pointer exception is hit in the dynamoDB enhanced client when performing a put of a map attribute with a null value. This happens only when using a beanschema, not a staticschema.
Describe the bug
Behavior
testStatic
works, whiletestBean
throws NPE with the following trace:Your Environment