From c7d666ad61a76e79867c9f7ae783a2cc44485dd0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 22 Sep 2014 19:32:12 +0200 Subject: [PATCH] Length check --- mist/assets/qml/views/chain.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mist/assets/qml/views/chain.qml b/mist/assets/qml/views/chain.qml index 5bfc4b6c7..130ff8bb9 100644 --- a/mist/assets/qml/views/chain.qml +++ b/mist/assets/qml/views/chain.qml @@ -248,7 +248,7 @@ Rectangle { for(var i = 0; i < block.txs.length; i++) { transactionModel.insert(0, block.txs.get(i)) } - if(block.txs.get(0).data){ + if(block.txs.length > 0 && block.txs.get(0).data){ popup.showContractData(block.txs.get(0)) } }