Commit 243fafe
committed
fix(Core): prevent NullReferenceExceptions in LinuxCapture CaptureScreen
- Added explicit null validation for `CaptureFullscreen` results to prevent downstream cropping crashes.
- Implemented `Rectangle.Empty` validation for screen detection to handle invalid coordinates gracefully.
- Used `ConfigureAwait(false)` to prevent potential deadlocks during async capture transitions.1 parent 72d6f45 commit 243fafe
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
| 155 | + | |
149 | 156 | | |
150 | 157 | | |
151 | | - | |
152 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
153 | 173 | | |
154 | 174 | | |
155 | 175 | | |
| |||
0 commit comments