Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

[alc] fix nullpointer exception when logging null (#38)#439

Merged
smirnoal merged 1 commit intomainaws/aws-lambda-java-libs:mainfrom
torokd-fix-nullpointer-exceptionaws/aws-lambda-java-libs:torokd-fix-nullpointer-exceptionCopy head branch name to clipboard
Sep 4, 2023
Merged

[alc] fix nullpointer exception when logging null (#38)#439
smirnoal merged 1 commit intomainaws/aws-lambda-java-libs:mainfrom
torokd-fix-nullpointer-exceptionaws/aws-lambda-java-libs:torokd-fix-nullpointer-exceptionCopy head branch name to clipboard

Conversation

@dtorok
Copy link
Contributor

@dtorok dtorok commented Sep 4, 2023

Description of changes:
Integration tests highlighted a problem, when logging a null object the runtime crashed with NullPointerException.

With this fix either the log formatter will handle the null value, or the ContextLogger when no formatting is involved, AbstractLogger will just pass it.

Target (OCI, Managed Runtime, both): both


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

* [alc] fix nullpointer exception when logging null

---------

Co-authored-by: Daniel Torok <torokd@amazon.com>
@smirnoal smirnoal merged commit 5777886 into main Sep 4, 2023
@smirnoal smirnoal deleted the torokd-fix-nullpointer-exception branch September 4, 2023 12:53
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.