diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-02-10 13:45:19 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-02-10 13:56:13 +0100 |
commit | 885d908ea336de72e7fce2141c1060e425f2af0a (patch) | |
tree | 7465387399beb78e982e020fbc6c134c3a8b8942 /src/shared | |
parent | 678488e7d93aee37aef4dc0a2b4af3ef1210b3dc (diff) | |
download | qt-creator-885d908ea336de72e7fce2141c1060e425f2af0a.tar.gz |
Fixed two crashes with C++ engine handling
These checks are necessary cause of a recent change in the C++ engine.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index efb6a369ae..200406b6bb 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -217,7 +217,7 @@ void Scope::enterSymbol(Symbol *symbol) Symbol *Scope::lookat(Identifier *id) const { - if (! _hash) + if (! _hash || ! id) return 0; const unsigned h = id->hashCode() % _hashSize; |