Commit 74cc32f
authored
Fix NullPointerException in ApplicationModuleImpl (#9879)
What Does This Do
Added a guard in InsecureJspFolderVisitor.preVisitDirectory to keep walking when a directory lacks a name, preventing the previous NullPointerException.
Introduced a regression test that instantiates the visitor and verifies it safely handles the filesystem root path.1 parent d86fe55 commit 74cc32f
File tree
2 files changed
+21
-1
lines changed- dd-java-agent/agent-iast/src
- main/java/com/datadog/iast/sink
- test/groovy/com/datadog/iast/sink
2 files changed
+21
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
141 | 157 | | |
0 commit comments