You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is indeed an edge case issue in X-Ray SDK while serializing duplicate exception. In the second catch statement, as the AmazonServiceException from previous step has already been recorded, SDK will only record the Cause to the exception descriptor. When the AmazonServiceException is wrapped as an inner exception and passed to next catch statement, the SDK will try to figure out if this inner exception has been recorded or not by checking the Exception from the descriptor, which, as I mentioned before, will not be recorded as only the Cause will be recorded for duplicate exception. This is why you see the null reference exception.
@lupengamzn , @srprash - Any updates on when we might be able to get a release generated with the current codebase? I would really like to get this fix into our production environments.
This code should work, however currently throws a null reference exception because the existing cause does not have an exception associated.
The text was updated successfully, but these errors were encountered: