check the pointer

This commit is contained in:
Marco Martin 2014-02-11 11:11:34 +01:00
parent 3c74807791
commit 0d138bf2fb

View File

@ -213,6 +213,9 @@ QObject *AppletQuickItemPrivate::createCompactRepresentationExpanderItem()
compactRepresentationExpanderItem = qmlObject->createObjectFromComponent(compactRepresentationExpander.data(), QtQml::qmlContext(qmlObject->rootObject())); compactRepresentationExpanderItem = qmlObject->createObjectFromComponent(compactRepresentationExpander.data(), QtQml::qmlContext(qmlObject->rootObject()));
if (!compactRepresentationExpanderItem) {
return 0;
}
compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant::fromValue(createCompactRepresentationItem())); compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant::fromValue(createCompactRepresentationItem()));