Length check

This commit is contained in:
obscuren 2014-09-22 19:32:12 +02:00
parent d5262a3350
commit c7d666ad61

View File

@ -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))
} }
} }