Skip to content

Commit 23f75f5

Browse files
committed
Fix if ordering
1 parent c25f764 commit 23f75f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public void run() {
167167
}
168168
});
169169
return result;
170+
} catch (ObsoleteClientException | ShowToUserException ex) {
171+
ConvenientDialogDisplayer.getDefault().displayError(ex.getMessage());
172+
return null;
170173
} catch (TmcCoreException ex) {
171174
if (ex instanceof TmcCoreException && (ex.getCause() == null || !(ex.getCause() instanceof ObsoleteClientException))) {
172175
SwingUtilities.invokeLater(new Runnable() {
@@ -179,9 +182,6 @@ public void run() {
179182
}
180183
ConvenientDialogDisplayer.getDefault().displayError(ex.getCause().getMessage());
181184
return null;
182-
} catch (ObsoleteClientException | ShowToUserException ex) {
183-
ConvenientDialogDisplayer.getDefault().displayError(ex.getMessage());
184-
return null;
185185
} catch (InterruptedException e) {
186186
SwingUtilities.invokeLater(new Runnable() {
187187
@Override

0 commit comments

Comments
 (0)