Access Violation in TDBRadioGroup.UpdateRadioButtonStates
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This is a minor programming issue. At line 146 there is an unprotected reference to Datalink.Field.AsString in TDBRadioGroup.UpdateRadioButtonStates. i.e.
"else if (not DataLink.CanModify) and (DataLink.Field.AsString <> NewValue) then "
If for some reason the Field is empty then an Access Violation occurs.
Steps to reproduce:
Add a TDBRadioGroup to a form and forget to assign a DataField to it.
Additional information:
Suggested patch attached
Mantis conversion info:
- Mantis ID: 32077
- OS: Linux Mint
- OS Build: 18.1
- Build: r55404 (1.8.0 fixes)
- Platform: X86_64
- Version: 1.8RC2