Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
414d9fe3
Commit
414d9fe3
authored
Jun 03, 2010
by
Erik Verbruggen
Browse files
Fixed possible null-pointer crash.
parent
53e775cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CheckUndefinedSymbols.cpp
View file @
414d9fe3
...
...
@@ -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
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment