Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33736

NullPointer exception in VideoDisplay

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Apache Flex 4.10.0
    • Apache Flex 4.11.0
    • Spark: VideoPlayer
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebpatu sebastien Paturel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified