Commit 0c1e100
Chat - add null checks for editingSession across await boundaries (#309239)
Chat - add null checks for editingSession across await boundaries (#309129)
awaitStatsForSession reads model.editingSession across multiple await
points. If the model is disposed during one of these awaits, the
editingSession property is nulled and the next access crashes.
Re-check model.editingSession after each await and bail out with
undefined when the session has gone away.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0c9f13b commit 0c1e100
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
0 commit comments