Commit 2b5e62b
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 <[email protected]>1 parent 97c87c8 commit 2b5e62b
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