Commit 155007c
committed
fix: add null check for envelope folder node
Psalm static analysis reported that getFirstNodeById() can return
null, but getFolderForFile() was not handling this case. Added
explicit null check along with instance check to ensure type
safety and prevent potential null pointer errors.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent e1288e5 commit 155007c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments