Commit 32993f46 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed possible crash in check undefined symbols.

parent a96cc1a3
......@@ -371,7 +371,7 @@ void CheckUndefinedSymbols::checkNamespace(NameAST *name)
void CheckUndefinedSymbols::checkName(NameAST *ast)
if (ast->name) {
if (ast && ast->name) {
if (const Identifier *ident = ast->name->identifier()) {
const QByteArray id = QByteArray::fromRawData(ident->chars(), ident->size());
if (_potentialTypes.contains(id)) {
Supports Markdown
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