Commit bfbf7848 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed null-pointer deref.

parent 0eddf5c0
......@@ -111,7 +111,7 @@ void AddPropertyVisitor::addInMembers(QmlJS::AST::UiObjectInitializer *initializ
if (isOneLiner) {
if (insertAfter == 0) { // we're inserting after an lbrace
if (insertAfter->next) { // we're inserting before a member (and not the rbrace)
if (initializer->members) { // we're inserting before a member (and not the rbrace)
needsTrailingSemicolon = true;
}
} else { // we're inserting after a member, not after the lbrace
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment