QmlJS: Fix several crashes when UiQualifiedId::name is 0.

Task-number: QTCREATORBUG-2737
Reviewed-by: Kai Koehne
This commit is contained in:
Christian Kamm
2010-10-14 15:14:35 +02:00
parent 6688b6144e
commit a30c016189
4 changed files with 7 additions and 4 deletions

View File

@@ -468,7 +468,7 @@ private:
bool checkBindingName(UiQualifiedId *id)
{
if (id && !id->next && containsOffset(id->identifierToken)) {
if (id && id->name && !id->next && containsOffset(id->identifierToken)) {
_result.second = id->name->asString();
return true;
}