Commit 97d8b04
committed
fix(documentview): handle text view initialization errors
Wraps GetTextView in a try-catch to handle InvalidOperationException when the text view is still initializing, such as during document restoration. This prevents crashes by allowing the view to remain null if initialization is incomplete.1 parent 7fd5247 commit 97d8b04
1 file changed
Lines changed: 12 additions & 2 deletions
File tree
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments