Skip to content

Commit b4c708f

Browse files
committed
Catch throwables (NoSuchMethod etc.)
1 parent 1777766 commit b4c708f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/utilities/BgTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ public void run() {
128128
}
129129
});
130130
return null;
131-
} catch (final Exception ex) {
131+
} catch (final Throwable ex) {
132132
SwingUtilities.invokeLater(new Runnable() {
133133
@Override
134134
public void run() {
135135
listener.bgTaskFailed(ex);
136136
}
137137
});
138-
throw ExceptionUtils.toRuntimeException(ex);
138+
throw new RuntimeException(ex);
139139
} finally {
140140
synchronized (cancelLock) {
141141
executingThread = null;

0 commit comments

Comments
 (0)