Skip to content

Commit

Permalink
Fix possible crash with an empty handle
Browse files Browse the repository at this point in the history
Change-Id: I729c919692c65c0ab4272368b7c98101ef573545
Reviewed-on: http://codereview.qt-project.org/6204
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
  • Loading branch information
Aaron Kennedy authored and Qt by Nokia committed Oct 7, 2011
1 parent cdf8680 commit fcfea59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/declarative/qml/qdeclarativeproperty.cpp
Expand Up @@ -1297,7 +1297,7 @@ bool QDeclarativePropertyPrivate::writeBinding(const QDeclarativeProperty &that,
} \


if (object && pp->valueType.valueTypeCoreIdx == -1) {
if (!isUndefined && object && pp->valueType.valueTypeCoreIdx == -1) {
switch (type) {
case QMetaType::Int:
if (result->IsInt32())
Expand Down

0 comments on commit fcfea59

Please sign in to comment.