Commit ef73380
Fix latent NRE in Reopen seek and remove dead local
The deferred seek lambda in the Reopen flow re-read the SelectedSubtitle
property instead of the null-checked local snapshot. Since the post runs
on a later UI tick, closing the file or clearing the selection in that
window would make SelectedSubtitle null and throw an NRE on the UI
thread. Use the captured local `s`, which is already null-checked.
Also drop the now-unused colorTextTooLong local in
SubtitleTextInfoHelper.Populate (CPS coloring switched to
ColorCharactersPerSecond).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e1da4b5 commit ef73380
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1834 | 1834 | | |
1835 | 1835 | | |
1836 | 1836 | | |
1837 | | - | |
| 1837 | + | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | 1840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments