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

fix npe when mapping insert / delete events. #143

Merged
merged 2 commits into from
Jun 11, 2020
Merged

fix npe when mapping insert / delete events. #143

merged 2 commits into from
Jun 11, 2020

Conversation

senioroman4uk
Copy link
Contributor

Insert event does not have oldImage. Remove event does not have newImage. At this moment library just throws nullPointerException

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@carlzogh carlzogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for spotting this and submitting a PR to get it fixed!

Insert event does not have oldImage. Remove event does not have newImage. At this moment library just throws nullPointerException
@senioroman4uk
Copy link
Contributor Author

hey guys do you have any other suggestions? I would appreciate for this PR to be merged

@carlzogh carlzogh merged commit 4bbc6bb into aws:master Jun 11, 2020
@carlzogh
Copy link
Contributor

Thanks for your contribution @senioroman4uk !
We'll try and get this out ASAP

@senioroman4uk senioroman4uk deleted the fix-new-image-old-image-npe branch June 12, 2020 00:26
@senioroman4uk
Copy link
Contributor Author

My pleasure) If you need help with any other issue, let me know

@carlzogh
Copy link
Contributor

@senioroman4uk aws-lambda-java-events-sdk-transformer version 2.0.1 containing your fix was just released https://search.maven.org/artifact/com.amazonaws/aws-lambda-java-events-sdk-transformer/2.0.1/jar - thanks again for your contribution, please feel free to keep 'em coming if you find further room for improvement! :)

@senioroman4uk
Copy link
Contributor Author

Super! glad to be of assistance

raupachz pushed a commit to raupachz/aws-lambda-java-libs that referenced this pull request Dec 1, 2020
Insert event does not have oldImage. Remove event does not have newImage. At this moment library just throws nullPointerException

Co-authored-by: Carl Zogheib <11421173+carlzogh@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants