Skip to content
Snippets Groups Projects
Commit 414d9fe3 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed possible null-pointer crash.

parent 53e775cb
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment