forked from qt-creator/qt-creator
CppTools: Don't deref null pointer
Change-Id: I92eade63b4fdc7039ce9b4e0a7db1091fb34d692 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -51,7 +51,7 @@ QVariant SymbolItem::data(int /*column*/, int role) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
OverviewModel *overviewModel = qobject_cast<OverviewModel *>(model());
|
OverviewModel *overviewModel = qobject_cast<OverviewModel *>(model());
|
||||||
if (!overviewModel)
|
if (!symbol || !overviewModel)
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
switch (role) {
|
switch (role) {
|
||||||
|
Reference in New Issue
Block a user