We may be having problems where we know about one JSException class and the VM
is throwing another and they don't end up matching. Let's just catch any exception thrown when trying to propagate status to JavaScript and log it.
This commit is contained in:
@@ -134,8 +134,8 @@ public class GetdownApplet extends JApplet
|
||||
try {
|
||||
JSObject.getWindow(GetdownApplet.this).call(
|
||||
"getdownStatus", new Object[] { message, percent, remaining });
|
||||
} catch (JSException jse) {
|
||||
// don't sweat it.
|
||||
} catch (Throwable t) {
|
||||
Log.warning("Failed to communicate status to JavaScript: " + t);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user