flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sebastien Paturel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33736) NullPointer exception in VideoDisplay
Date Tue, 17 Sep 2013 12:15:52 GMT
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.

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.


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

View raw message