Commit 1c893073 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed possible crash when asking for the icon of a top-level symbol (e.g. the global namespace).

parent c5df0a1d
......@@ -84,7 +84,7 @@ QIcon Icons::iconForSymbol(const Symbol *symbol) const
} else if (symbol->isPrivate()) {
return _funcPrivateIcon;
} else if (symbol->scope()->isEnumScope()) {
} else if (symbol->scope() && symbol->scope()->isEnumScope()) {
return _enumeratorIcon;
} else if (symbol->isDeclaration() || symbol->isArgument()) {
if (symbol->isPublic()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment