Length check

pull/137/head
obscuren 10 years ago
parent d5262a3350
commit c7d666ad61
  1. 2
      mist/assets/qml/views/chain.qml

@ -248,7 +248,7 @@ Rectangle {
for(var i = 0; i < block.txs.length; i++) { for(var i = 0; i < block.txs.length; i++) {
transactionModel.insert(0, block.txs.get(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)) popup.showContractData(block.txs.get(0))
} }
} }

Loading…
Cancel
Save