Commit 414d9fe3 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed possible null-pointer crash.

parent 53e775cb
......@@ -413,7 +413,7 @@ bool CheckUndefinedSymbols::visit(QualifiedNameAST *ast)
bool CheckUndefinedSymbols::visit(TypenameTypeParameterAST *ast)
{
if (ast->name) {
if (ast->name && ast->name->name) {
if (const Identifier *templId = ast->name->name->identifier()) {
const QByteArray id = QByteArray::fromRawData(templId->chars(), templId->size());
if (_potentialTypes.contains(id)) {
......
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