Skip to content

Fix NPE in Spring when handling exceptions during LOG_ERROR strategy - #125

Merged
shengxil merged 2 commits into
aws:masterfrom
chanchiem:npe_spring
Jan 29, 2020
Merged

Fix NPE in Spring when handling exceptions during LOG_ERROR strategy#125
shengxil merged 2 commits into
aws:masterfrom
chanchiem:npe_spring

Conversation

@chanchiem

Copy link
Copy Markdown
Contributor

Issue #, if available:
#93

Description of changes:
Adds a null check prior to adding the exception to the segment.
Added unit tests to ensure the rest of the call succeeds. Also added a case to ensure that the exception is added when the segment does exist.

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

…ws#93)

Adds a null check prior to adding the exception to the segment.
@shengxil
shengxil merged commit 5f252fe into aws:master Jan 29, 2020
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