Check for null ptr in qmlobject_cast definition
authorChris Adams <christopher.adams@nokia.com>
Tue, 12 Jun 2012 07:47:15 +0000 (17:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 12:10:24 +0000 (14:10 +0200)
commiteacbc7805e937e64b7e117705919b214aed4f736
tree5416f535f54bf67920acc4c673586e982c024a7e
parent38540f6091c2ffedaea3afbf093d8079840c9ea2
Check for null ptr in qmlobject_cast definition

Previously, the input object wasn't checked for nullness, and thus
the qmlobject_cast could assert.

Change-Id: I3552150953cef8411a860a381e28b1d681494b08
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/qml/qml/qqmlglobal_p.h
tests/auto/qml/qqmlcpputils/tst_qqmlcpputils.cpp