TransactionTableModel is part of the WalletModel, so you can assume it to always exist. But if you want to add NULL pointer checks I won't stop you :)