Skip to content
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 is thrown when updating with AttributeValueUpdate without action #75

Open
nefilim opened this issue Sep 4, 2013 · 1 comment
Open

Comments

@nefilim
Copy link

nefilim commented Sep 4, 2013

v0.6.4

com.amazonaws.AmazonServiceException: Caught java.lang.NullPointerException (null) at com.michelboudreau.alternator.AlternatorDBHandler.updateItem line 991

This does not happen when running the same code against a AWS DynamoDB, I was under the impression one does not have to specify an action:

updateItems.put("NewAttribute",
new AttributeValueUpdate()
.withValue(new AttributeValue().withS("Some Value")));

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LowLevelJavaCRUDExample.html

@mboudreau
Copy link
Owner

Hm, interesting. Alternator is lacking a bit behind some of Amazon's changes. As I don't use Alternator currently for a project, it's been hard to keep up. Thanks for bringing this to my attention.

The best way to fix it is to put a failing test that explain your problem exactly, which shouldn't take you long since you already have the failing code. Hopefully, someone will eventually fix this issue, but I would definitely recommend that you try your hand at fixing it. I can't speak for others, but my schedule is already fairly busy and it might take me a while to get to this problem.

With that said, I'm always available to lend an ear if you don't understand something.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants