Commit 8c298a2
authored
Fix NullPointerException in ExceptionProbe (#11051)
Fix NullPointerException in ExceptionProbe
getInnerMostThrowable can return null if there is cycle in causes
need to check for function return
fix test
Co-authored-by: jean-philippe.bempel <jean-philippe.bempel@datadoghq.com>1 parent e16815c commit 8c298a2
File tree
2 files changed
+10
-1
lines changed- dd-java-agent/agent-debugger/src
- main/java/com/datadog/debugger/probe
- test/java/com/datadog/debugger/util
2 files changed
+10
-1
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments