From 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 00:27:33 +0300 Subject: Add some missing checks to other files found by paranucker. --- src/listeners/guitableactionlistener.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/listeners/guitableactionlistener.cpp') diff --git a/src/listeners/guitableactionlistener.cpp b/src/listeners/guitableactionlistener.cpp index d0a2b7a18..70ec49129 100644 --- a/src/listeners/guitableactionlistener.cpp +++ b/src/listeners/guitableactionlistener.cpp @@ -56,6 +56,9 @@ GuiTableActionListener::~GuiTableActionListener() void GuiTableActionListener::action(const ActionEvent &actionEvent A_UNUSED) { - mTable->setSelected(mRow, mColumn); - mTable->distributeActionEvent(); + if (mTable) + { + mTable->setSelected(mRow, mColumn); + mTable->distributeActionEvent(); + } } -- cgit v1.2.3-70-g09d2