summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlboundsignal.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-09-29 02:04:17 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-09-29 02:04:17 (GMT)
commitac5e8f92d3bb5820e7a4bdc903473d421463922d (patch)
tree2bee06b2520c49909cfad72b00409a4d2b3c2b64 /src/declarative/qml/qmlboundsignal.cpp
parent25ccab91fbcd9e61fa160b55fc23d6938ff589bd (diff)
downloadQt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.zip
Qt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.tar.gz
Qt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.tar.bz2
Fix crash bug when inspecting QmlBoundSignalParameters objects in
debugger.
Diffstat (limited to 'src/declarative/qml/qmlboundsignal.cpp')
-rw-r--r--src/declarative/qml/qmlboundsignal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlboundsignal.cpp b/src/declarative/qml/qmlboundsignal.cpp
index 08c3387..ce591e8 100644
--- a/src/declarative/qml/qmlboundsignal.cpp
+++ b/src/declarative/qml/qmlboundsignal.cpp
@@ -243,6 +243,9 @@ void QmlBoundSignalParameters::clearValues()
int QmlBoundSignalParameters::metaCall(QMetaObject::Call c, int id, void **a)
{
+ if (!values)
+ return -1;
+
if (c == QMetaObject::ReadProperty && id >= 1) {
QmlMetaType::copy(types[id - 1], a[0], values[id]);
return -1;