From 4793471f130889af140f8ed41f07b885b4d7df66 Mon Sep 17 00:00:00 2001 From: Oleksandr Labetskyi Date: Mon, 12 Feb 2024 19:23:23 +0200 Subject: [PATCH] Small fix --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index cb1dff605c6..d9f736d4702 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -740,7 +740,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes() } else if (Token::Match(tok, "extern %type%")) { while (Token::Match(tok, "%name%|*|&")) tok = tok->next(); - if (tok->str() != "(") + if (!tok || tok->str() != "(") continue; tok = tok->previous(); if (Token::simpleMatch(tok->linkAt(1), ") ;")) {