Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
499f7780
Commit
499f7780
authored
Feb 18, 2010
by
Christian Kamm
Browse files
Fix possible crash in QmlJS semantic checker.
parent
cd53a562
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljscheck.cpp
View file @
499f7780
...
...
@@ -190,8 +190,11 @@ void Check::checkScopeObjectMember(const AST::UiQualifiedId *id)
return
;
// attached properties
if
(
!
propertyName
.
isEmpty
()
&&
propertyName
[
0
].
isUpper
())
if
(
!
propertyName
.
isEmpty
()
&&
propertyName
[
0
].
isUpper
())
{
scopeObject
=
_context
.
typeEnvironment
(
_doc
.
data
());
if
(
!
scopeObject
)
return
;
}
const
Value
*
value
=
scopeObject
->
lookupMember
(
propertyName
,
&
_context
);
if
(
_extraScope
&&
!
value
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment