Skip to content

Commit

Permalink
Length check
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Sep 22, 2014
1 parent d5262a3 commit c7d666a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mist/assets/qml/views/chain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit c7d666a

Please sign in to comment.