How to reproduce bug:
- Run bitcoin-qt which doen't have transactions. (any mode, here testnet screenshot but same problem with mainnet)

- Press right mouse button at center:

- Program crashes:

I found that error at the line:
hash.SetHex(selection.at(0).data(TransactionTableModel::TxHashRole).toString().toStdString());
and I added the check.
My system: Linux Mint 18, Qt 5.5