Skip to content
GitLab
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
42e49fcc
Commit
42e49fcc
authored
Nov 12, 2010
by
Christian Kamm
Browse files
QmlJS: Add missing null check for completion in string literals.
parent
02dd995d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljscodecompletion.cpp
View file @
42e49fcc
...
...
@@ -781,7 +781,9 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
if
(
contextFinder
.
isInStringLiteral
())
{
const
Interpreter
::
Value
*
value
=
getPropertyValue
(
qmlScopeType
,
contextFinder
.
bindingPropertyName
(),
context
);
if
(
value
->
asUrlValue
())
{
if
(
!
value
)
{
// do nothing
}
else
if
(
value
->
asUrlValue
())
{
QTextCursor
tc
=
edit
->
textCursor
();
QmlExpressionUnderCursor
expressionUnderCursor
;
expressionUnderCursor
(
tc
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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