Ticket #1467 (closed bug: fixed)

Opened 21 months ago

Last modified 20 months ago

Gracefully handle empty XML configuration files

Reported by: pablo Owned by: pablo
Priority: Normal Milestone: Player 5.9
Component: flash Keywords:
Cc: Forum thread: http://www.longtailvideo.com/support/forums/jw-player/bug-reports/22259/unhandled-exception

Description

From linuxdev:

There is an unhandled exception in Configger.as, specifically in the function loadComplete(), and
specifically in the line:

var loadedXML:XML = XML((evt.target as URLLoader).data);

The exception is thrown when the XML exists, but it's empty. That scenario it's supposed to 
be checked in the following line with:

loadedXML.children().length() > 0

But the flow never reaches this point. This is 100% reproducible, at least in 5.7

Change History

comment:1 Changed 20 months ago by pablo

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [2020]

Version 0, edited 20 months ago by pablo (next)
Note: See TracTickets for help on using tickets.