Permalink
Browse files

Fix Block Browser Crash

when clicking on transaction with zero confirms
  • Loading branch information...
Tranz5 committed Sep 29, 2014
1 parent b64a201 commit 97e7d2ebfebd51ec5423f3d8746e108f42543487
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/qt/blockbrowser.cpp
View
@@ -283,7 +283,10 @@ void BlockBrowser::setTransactionId(const QString &transactionId)
if (GetTransaction(hash, tx, hashBlock))
{
CBlockIndex* pblockindex = mapBlockIndex[hashBlock];
ui->heightBox->setValue(pblockindex->nHeight);
if (!pblockindex)
ui->heightBox->setValue(nBestHeight);
else
ui->heightBox->setValue(pblockindex->nHeight);
updateExplorer(true);
}
}

0 comments on commit 97e7d2e

Please sign in to comment.