[
https://issues.apache.org/jira/browse/FLEX-33736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-33736.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.11.0
Checked into develop branch.
> NullPointer exception in VideoDisplay
> -------------------------------------
>
> Key: FLEX-33736
> URL: https://issues.apache.org/jira/browse/FLEX-33736
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: VideoPlayer
> Affects Versions: Apache Flex 4.10.0
> Reporter: sebastien Paturel
> Priority: Blocker
> Fix For: Apache Flex 4.11.0
>
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> If you try to load a video in VideoPlayer, but the source does not exist. And
> then try to load another video.
> The previous loading is stuck in intermediate state, and when try to load
> new source, theres a null pointer exception in VideoDisplay in function
> cleanUpSource() at lines: videoPlayer.displayObject.visible = true; because
> videoPlayer.displayObject is null. The previous aborted loading has not
> initialised it yet.
> Solution:
> add " if(videoPlayer.displayObject) " before the two lines
> videoPlayer.displayObject.visible = true; of this function cleanUpSource()
> In fact everywhere else in this Class theres always this if when this
> variable is used. So its logical to do it here also.
> Thanks
--
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