Commit 59b0330
Fix NullPointerException in Exception Replay (#12429)
Fix NullPointerException in Exception Replay
For FastThrow, getStackTrace can return null instead of empty
StackTraceElement array
call only once getStackTrace
fix possible NPE from chained exceptions
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent a4b447e commit 59b0330
2 files changed
Lines changed: 7 additions & 3 deletions
File tree
- dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | | - | |
98 | | - | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments