We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728c8f2 commit 4615b67Copy full SHA for 4615b67
1 file changed
src/main/java/eu/mihosoft/vrl/v3d/CSGClient.java
@@ -234,9 +234,13 @@ public static void close() {
234
}
235
236
public static boolean isRunning() {
237
- if(javafx.application.Platform.isFxApplicationThread()) {
238
- new Exception("ERROR! CSG operation detected on UI thread, this is a BAD idea!");
239
- return false;// do not run operation on UI thread
+ try {
+ if(javafx.application.Platform.isFxApplicationThread()) {
+ new Exception("ERROR! CSG operation detected on UI thread, this is a BAD idea!");
240
+ return false;// do not run operation on UI thread
241
+ }
242
+ }catch(Exception ex) {
243
+ // can not be a UI thread if ui toolkit is not running
244
245
if (isServerCall())
246
return false;
0 commit comments