You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "sebastien Paturel (JIRA)" <ji...@apache.org> on 2013/09/17 14:15:52 UTC
[jira] [Created] (FLEX-33736) NullPointer exception in VideoDisplay
sebastien Paturel created FLEX-33736:
----------------------------------------
Summary: 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
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