diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 04:26:18 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 04:26:18 (GMT) |
commit | d265b449325ef60624640f80f9438ac63547c1a8 (patch) | |
tree | 739a8e104e4db2bb5e26254ddc6a9ccce79f82a5 /src/declarative/qml | |
parent | 0bb82245f83b47adf654d34d3e273dad1e39bd27 (diff) | |
download | Qt-d265b449325ef60624640f80f9438ac63547c1a8.zip Qt-d265b449325ef60624640f80f9438ac63547c1a8.tar.gz Qt-d265b449325ef60624640f80f9438ac63547c1a8.tar.bz2 |
Fix crash
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qmlobjectscriptclass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlobjectscriptclass.cpp b/src/declarative/qml/qmlobjectscriptclass.cpp index 84470fc..d3a2a22 100644 --- a/src/declarative/qml/qmlobjectscriptclass.cpp +++ b/src/declarative/qml/qmlobjectscriptclass.cpp @@ -132,7 +132,7 @@ QmlObjectScriptClass::queryProperty(QObject *obj, const Identifier &name, cache = ddata->propertyCache; if (!cache) { cache = enginePrivate->cache(obj); - if (ddata) { cache->addref(); ddata->propertyCache = cache; } + if (cache && ddata) { cache->addref(); ddata->propertyCache = cache; } } if (cache) { |