aws / aws/aws-xray-sdk-java

Potential NPE in Spring module when handling exceptions

Open
#93 4 comments 1 reaction 1 assignee Claimed by @chanchiem View on GitHub
bug
Dominant language
Java
Stars
100
Forks
100
PR merge metrics
No merged PRs in 30d

Description

When intercepted code throws exceptions, these are added to the current segment:

https://github.com/aws/aws-xray-sdk-java/blob/f893f6c123ce4958525d24681c1228887ce45256/aws-xray-recorder-sdk-spring/src/main/java/com/amazonaws/xray/spring/aop/AbstractXRayInterceptor.java#L54-L55

However, when the segment does not exist, I'm experiencing NPEs (using v2.2.1). This seems similar to #41, which referenced the same method, but this is a different case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.