Skip to content

Commit c7d666a

Browse files
committed
Length check
1 parent d5262a3 commit c7d666a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mist/assets/qml/views/chain.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Rectangle {
248248
for(var i = 0; i < block.txs.length; i++) {
249249
transactionModel.insert(0, block.txs.get(i))
250250
}
251-
if(block.txs.get(0).data){
251+
if(block.txs.length > 0 && block.txs.get(0).data){
252252
popup.showContractData(block.txs.get(0))
253253
}
254254
}

0 commit comments

Comments
 (0)