XmlLoader.loadLayout throws exception that cannot be caught

The loadLayout() function throws an exception at line 342 that cannot be caught by try/catch mechanisms or the error handler.

I suggest that you modify the code to call the error handler instead.

line 342

 throw "XmlLoader Exception : XML file is malformed or corrupted.";

should be replaced with:

if (onError){
    onError("XmlLoader Exception : XML file is malformed or corrupted.");
1 Like

This will be in the next nightly

1 Like

will it be fixed in BJS 4.2?

Nope, we won t backport those changes to 4.2. We only hot fix there if it is a browser breaking change related issue.