summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/effects/private/qgfxsourceproxy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/private/qgfxsourceproxy.cpp b/src/effects/private/qgfxsourceproxy.cpp
index bd55ff0..a94d574 100644
--- a/src/effects/private/qgfxsourceproxy.cpp
+++ b/src/effects/private/qgfxsourceproxy.cpp
@@ -102,6 +102,8 @@ void QGfxSourceProxy::useProxy()
QObject *QGfxSourceProxy::findLayer(QQuickItem *item)
{
+ if (!item)
+ return 0;
QQuickItemPrivate *d = QQuickItemPrivate::get(item);
if (d->extra.isAllocated() && d->extra->layer) {
QObject *layer = qvariant_cast<QObject *>(item->property("layer"));