Symbol database: Avoid possible null pointer dereference if _settings is null. Ticket: #2219
This commit is contained in:
parent
03b12c5494
commit
ad91f414db
|
@ -1025,7 +1025,7 @@ void SymbolDatabase::SpaceInfo::getVarList()
|
||||||
// If the vartok was set in the if-blocks above, create a entry for this variable..
|
// If the vartok was set in the if-blocks above, create a entry for this variable..
|
||||||
if (vartok && vartok->str() != "operator")
|
if (vartok && vartok->str() != "operator")
|
||||||
{
|
{
|
||||||
if (vartok->varId() == 0 && check->_settings->debugwarnings)
|
if (vartok->varId() == 0 && check->_settings && check->_settings->debugwarnings)
|
||||||
{
|
{
|
||||||
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
||||||
ErrorLogger::ErrorMessage::FileLocation loc;
|
ErrorLogger::ErrorMessage::FileLocation loc;
|
||||||
|
|
Loading…
Reference in New Issue