Potential NPE in Spring module when handling exceptions
Open
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
Assessment
This issue has not been assessed yet.