Commit 0b616b3
committed
Fix lspFrame.source NPE on stackTrace request
Follow up to:
- microsoft#614
- microsoft#609
With the change to set the line number to 0 the jdiLineNumber !=
lspFrame.line comparison can evaluate to true:
dap> lspFrame
Types$StackFrame@78
column: 1
id: 6
line: 0
name: "0x000000002f0bc000.invokeVirtual(Object,Object)"
presentationHint: "subtle"
source: null
dap> jdiLineNumber
-1
`source` being null caused an NPE1 parent b62897e commit 0b616b3
File tree
1 file changed
+3
-3
lines changed- com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments