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

@@ -241,7 +241,7 @@ bool Bind::visit(UiObjectDefinition *ast)
// think anchors { ... }
bool isGroupedBinding = false;
for (UiQualifiedId *it = ast->qualifiedTypeNameId; it; it = it->next) {
if (!it->next)
if (!it->next && it->name)
isGroupedBinding = it->name->asString().at(0).isLower();
}