TypeError: Error #1009: Cannot access a property or method of a null object reference

Stimulsoft Reports.Flex discussion
Locked
jordi
Posts: 1
Joined: Fri Jan 07, 2011 11:09 am
Location: USA

TypeError: Error #1009: Cannot access a property or method of a null object reference

Post by jordi »

Hello,
I am getting the following error when creating a variable with no category selected:
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]
the problem is caused by dictionaryTree.selectedObject being null in line:

Code: Select all

					variable.category = dictionaryTree.selectedObject.category;
Please advise,
Jordi
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

TypeError: Error #1009: Cannot access a property or method of a null object reference

Post by Vladimir »

Hello,

This error is already fixed, please download the latest prerelease build from our website:
http://stimulsoft.com/ReportsFxFlexDownloads.aspx

Thank you.
Locked