Commit 5d18599
Fix narratology pipeline crash on null protagonists from Pass 1
Pass 1 occasionally returns null entries inside the protagonists
array. The cast-building loop then called .toLowerCase() on null and
aborted the entire run with "Cannot read properties of null (reading
'toLowerCase')". Filter out non-string and empty entries before the
loop.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 32e2364 commit 5d18599
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | | - | |
| 1679 | + | |
| 1680 | + | |
1680 | 1681 | | |
1681 | 1682 | | |
1682 | 1683 | | |
| |||
0 commit comments