Skip to content

Commit 4615b67

Browse files
committed
catch ui test exception
1 parent 728c8f2 commit 4615b67

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/java/eu/mihosoft/vrl/v3d/CSGClient.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,13 @@ public static void close() {
234234
}
235235

236236
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
237+
try {
238+
if(javafx.application.Platform.isFxApplicationThread()) {
239+
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
240244
}
241245
if (isServerCall())
242246
return false;

0 commit comments

Comments
 (0)