aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/util/qsgtextureprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/scenegraph/util/qsgtextureprovider.cpp')
-rw-r--r--src/declarative/scenegraph/util/qsgtextureprovider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/util/qsgtextureprovider.cpp b/src/declarative/scenegraph/util/qsgtextureprovider.cpp
index b41188772e..2cae0f8f92 100644
--- a/src/declarative/scenegraph/util/qsgtextureprovider.cpp
+++ b/src/declarative/scenegraph/util/qsgtextureprovider.cpp
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
*/
QSGTextureProvider *QSGTextureProvider::from(QObject *object)
{
- return static_cast<QSGTextureProvider *>(object->qt_metacast("QSGTextureProvider"));
+ return object ? static_cast<QSGTextureProvider *>(object->qt_metacast("QSGTextureProvider")) : 0;
}