I am getting the following error when creating a variable with no category selected:
the problem is caused by dictionaryTree.selectedObject being null in line:TypeError: Error #1009: Cannot access a property or method of a null object reference.
at stimulsoft.controls.visual.forms::StiDictionaryVariableForm/createVariable()[D:\project\uma\src\as\Stimulsoft_DesignerFx\src\stimulsoft\controls\visual\forms\StiDictionaryVariableForm.mxml:117]
at stimulsoft.controls.visual.forms::StiDictionaryVariableForm/onOkButtonClickHandler()[D:\project\uma\src\as\Stimulsoft_DesignerFx\src\stimulsoft\controls\visual\forms\StiDictionaryVariableForm.mxml:137]
Code: Select all
variable.category = dictionaryTree.selectedObject.category;
Jordi