Commit 6288b31
authored
PropertyGridView: Prevent out-of-range access when committing next enumerable value (#14182)
## Proposed changes
- Update method `DoubleClickRow` and `OnMouseWheel`: After calling `gridEntry.GetPropertyValueList()`, check `values.Length > 0` before trying to access `values[index]`.
## Customer Impact
- Prevents IndexOutOfRangeException or similar crashes when users double‑click or scroll a PropertyGrid entry whose StandardValues list becomes empty at commit time.1 parent a8bb1e7 commit 6288b31
1 file changed
Lines changed: 12 additions & 0 deletions
File tree
- src/System.Windows.Forms/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1301 | 1307 | | |
1302 | 1308 | | |
1303 | 1309 | | |
| |||
3177 | 3183 | | |
3178 | 3184 | | |
3179 | 3185 | | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
3180 | 3192 | | |
3181 | 3193 | | |
3182 | 3194 | | |
| |||
0 commit comments