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

Add null checks before attempting debug response writing #1840

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

normj
Copy link
Member

@normj normj commented Oct 20, 2024

Issue #, if available:
#1328

Description of changes:
If the Lambda debug serialization environment variable is set a null pointer exception could be triggered if the Lambda function returned a null. This PR adds the null check to avoid going in the debug logic if the response is null.

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

@philasmar philasmar self-requested a review October 22, 2024 17:31
@normj normj merged commit 56e2b39 into master Oct 22, 2024
1 check passed
@normj normj deleted the normj/null-fix branch October 22, 2024 20:21
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.

3 participants