Prevent exceptions from going unnoticed. (#189)

SPARK-1775
This commit is contained in:
Guus der Kinderen
2016-08-12 19:52:16 +02:00
committed by wroot
parent 5aafa9cae5
commit 3276e65c07

View File

@ -21,6 +21,8 @@ package org.jivesoftware.spark.util;
import org.jivesoftware.spark.util.log.Log;
import javax.swing.SwingUtilities;
/**
@ -139,6 +141,9 @@ public abstract class SwingWorker {
try {
setValue(construct());
}
catch ( Exception e ) {
Log.error( e );
}
finally {
threadVar.clear();
}