From 6ae8a4da83a1c4092fa2ce570935853513d1c7df Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Thu, 9 Feb 2017 11:40:32 +0000 Subject: [PATCH] Display "0" balance for a node which has no cash balances at all. --- .../main/kotlin/net/corda/demobench/views/NodeTerminalView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)