Commit 243ffe2
Claude
fix: nil check before GetToken() dereference in MappingNode traversal
parser.go:469 dereferenced GetToken() without checking for nil, causing
a potential panic when traversing MappingNode keys with missing tokens.
Other call sites in the same function already guard with nil checks
(lines 481, 509); this brings the pattern in line with them.1 parent 3dd2183 commit 243ffe2
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
470 | 474 | | |
471 | 475 | | |
472 | 476 | | |
| |||
0 commit comments