diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt index 3c6cc8a294..5361fbb873 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt @@ -103,7 +103,7 @@ class NodeTerminalView : Fragment() { Platform.runLater { states.value = statesInVault.first.size.toString() transactions.value = verifiedTx.first.size.toString() - balance.value = cashBalances + balance.value = if (cashBalances.isNullOrEmpty()) "0" else cashBalances } } catch (e: Exception) { log.warning("RPC failed: " + e)