[
https://issues.apache.org/jira/browse/FLEX-24142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-24142.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.10.0
Checked into develop branch.
> Null reference in Slider class: getComponentBounds
> --------------------------------------------------
>
> Key: FLEX-24142
> URL: https://issues.apache.org/jira/browse/FLEX-24142
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: Slider
> Affects Versions: Adobe Flex SDK 3.0 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
> Reporter: Adobe JIRA
> Fix For: Apache Flex 4.10.0
>
>
> Specific SDK build is 3.4.1.10084
> In getComponentBounds() in mx/controls/sliderClasses/Slider.as,
> thumbs.numChildren is read without checking if thumbs has been initialized
> yet, resulting in a null reference.
> Steps to reproduce:
> Sample code:
> var mySlider:VSlider = new VSlider();
> mySlider.validateSize();
>
> Actual Results:
> An ActionScript error has occurred:
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
> at
> mx.controls.sliderClasses::Slider/getComponentBounds()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1861]
> at
> mx.controls.sliderClasses::Slider/measure()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1493]
> at
> mx.core::UIComponent/measureSizes()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:5956]
> at
> mx.core::UIComponent/validateSize()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:5902]
>
> Expected Results:
> No runtime error.
>
> Workaround (if any):
> Call invalidateProperties() and validateProperties on the slider object to
> force the thumbs property to initialize.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira