Fixed two crashes with C++ engine handling

These checks are necessary cause of a recent change in the C++ engine.

Reviewed-by: Roberto Raggi
This commit is contained in:
Thorbjørn Lindeijer
2009-02-10 13:45:19 +01:00
parent 678488e7d9
commit 885d908ea3
2 changed files with 2 additions and 2 deletions

View File

@@ -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;