check the pointer
This commit is contained in:
parent
3c74807791
commit
0d138bf2fb
@ -213,6 +213,9 @@ QObject *AppletQuickItemPrivate::createCompactRepresentationExpanderItem()
|
||||
|
||||
compactRepresentationExpanderItem = qmlObject->createObjectFromComponent(compactRepresentationExpander.data(), QtQml::qmlContext(qmlObject->rootObject()));
|
||||
|
||||
if (!compactRepresentationExpanderItem) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant::fromValue(createCompactRepresentationItem()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user