From 683172cd4efb7a310e675dcc2eca319c081f13c7 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 30 Oct 2015 17:53:44 +0100 Subject: NULL check on the SessionItem.... --- src/dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dialog.cpp') diff --git a/src/dialog.cpp b/src/dialog.cpp index e13bb81..cccf3b4 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -90,6 +90,9 @@ void Dialog::on_treeView_doubleClicked(QModelIndex index) SessionTreeItem* item = static_cast(index.internalPointer()); + if (item == NULL) + return; // do nothing if cast failed + const Session* s(item->session()); if (s == NULL) // no valid session has been selected, do nothing return; -- cgit v1.2.3-55-g7522