flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tom chiverton (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-28913) Scroller's snapElement needs additional check for null dataprovider
Date Thu, 23 May 2013 09:49:20 GMT

     [ https://issues.apache.org/jira/browse/FLEX-28913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

tom chiverton updated FLEX-28913:
---------------------------------

    Attachment: SparkAlert.mxml

Works as expected in SDK 4.9.1 - clicking the button changes the List height without exception.
                
> Scroller's snapElement needs additional check for null dataprovider
> -------------------------------------------------------------------
>
>                 Key: FLEX-28913
>                 URL: https://issues.apache.org/jira/browse/FLEX-28913
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: Scroller
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>         Attachments: SparkAlert.mxml
>
>
> Found in Adobe ThRead.  This occurs when resizing a list with no elements (or dataprovider=null)
+ scrollsnapping enabled.
>  
>  Actual Results:
>  TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at spark.components::Scroller/http://www.adobe.com/2006/flex/mx/internal::snapElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:1518]
> 	at spark.components::Scroller/checkScrollPosition()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:1750]
> 	at spark.components::Scroller/handleSizeChange()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:1766]
> 	at spark.components::Scroller/handleSizeChangeOnUpdateComplete()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2048]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
> 	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:844]
> 	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
> 	at flash.utils::Timer/_timerDispatch()
> 	at flash.utils::Timer/tick()
>  
>  Expected Results:
>  
>  
>  Workaround (if any):

--
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

Mime
View raw message