Try fixing maven build junit-plugin test

InvalidThread access on Mac for unknown
reason. But maybe we can just ignore that.
This commit is contained in:
Kris De Volder
2018-05-17 13:16:45 -07:00
parent 6cbc055cb5
commit e598039f65

View File

@@ -238,9 +238,14 @@ public abstract class ACondition {
}
}
}
public static boolean inUIThread() {
return Display.getDefault().getThread() == Thread.currentThread();
try {
return Display.getDefault().getThread() == Thread.currentThread();
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
public static StringBuffer getStackDumps() {