From 5c8844d8f78b01686fcabd77ece5a7f12e24a796 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Fri, 13 Apr 2018 14:18:16 +0200 Subject: [PATCH] CppTools: Don't deref null pointer Change-Id: I92eade63b4fdc7039ce9b4e0a7db1091fb34d692 Reviewed-by: hjk --- src/plugins/cpptools/cppoverviewmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cpptools/cppoverviewmodel.cpp b/src/plugins/cpptools/cppoverviewmodel.cpp index eaa4b2a8aab..590f2b6847b 100644 --- a/src/plugins/cpptools/cppoverviewmodel.cpp +++ b/src/plugins/cpptools/cppoverviewmodel.cpp @@ -51,7 +51,7 @@ QVariant SymbolItem::data(int /*column*/, int role) const } OverviewModel *overviewModel = qobject_cast(model()); - if (!overviewModel) + if (!symbol || !overviewModel) return QVariant(); switch (role) {