aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljsfindreferences.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/qmljseditor/qmljsfindreferences.cpp b/src/plugins/qmljseditor/qmljsfindreferences.cpp
index 67abdece261..8b790c33510 100644
--- a/src/plugins/qmljseditor/qmljsfindreferences.cpp
+++ b/src/plugins/qmljseditor/qmljsfindreferences.cpp
@@ -322,10 +322,12 @@ protected:
bool visit(AST::UiPublicMember *node) override
{
- if (node->memberType->name == _name){
- const ObjectValue * tVal = _context->lookupType(_doc.data(), QStringList(_name));
- if (tVal == _typeValue)
- _usages.append(node->typeToken);
+ if (UiQualifiedId *memberType = node->memberType) {
+ if (memberType->name == _name) {
+ const ObjectValue * tVal = _context->lookupType(_doc.data(), QStringList(_name));
+ if (tVal == _typeValue)
+ _usages.append(node->typeToken);
+ }
}
if (AST::cast<Block *>(node->statement)) {
_builder.push(node);