pixmap: Add QPlatformPixmap::fromData null check for the image
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Mon, 23 Jan 2012 13:02:48 +0000 (14:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 00:56:03 +0000 (01:56 +0100)
commit9cbbd38f22fe0aff72599583c7702f88195a7607
treec7d204eea7e72fd5caa80a580a1113c516e66fb9
parentbd8ef8d073201504a983249c4006c827befacf09
pixmap: Add QPlatformPixmap::fromData null check for the image

QPlatformPixmap::fromFile is doing the null check,
QRasterPlatformPixmap::fromData is doing the null check as
well. Add the null check to QPlatformPixmap::fromData as
well. This would have avoided a crash in the directfb plugin.

Change-Id: Ifc904b2df2424e86bf0992d4e28dc256530be02d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/image/qplatformpixmap.cpp