diff --git a/client/jfx/src/main/kotlin/net/corda/client/jfx/model/NodeMonitorModel.kt b/client/jfx/src/main/kotlin/net/corda/client/jfx/model/NodeMonitorModel.kt index a49785a101..f69e12e272 100644 --- a/client/jfx/src/main/kotlin/net/corda/client/jfx/model/NodeMonitorModel.kt +++ b/client/jfx/src/main/kotlin/net/corda/client/jfx/model/NodeMonitorModel.kt @@ -70,7 +70,8 @@ class NodeMonitorModel { // Only execute using "runLater()" if JavaFX been initialized. // It may not be initialized in the unit test. - if(initialized.value.get()) { + // Also if we are already in the JavaFX thread - perform direct invocation without postponing it. + if(initialized.value.get() && !Platform.isFxApplicationThread()) { Platform.runLater(op) } else { op()