drawImage: Bail out on image.isNull()


One would expect nothing to be drawn when passing a "null", default
constructed QCImage. Whereas what it does now is drawing a black
filled rectangle, effectively.

Exercised in imagetester.

Pick-to: 6.11
Change-Id: I61e12fe377cede870de652a3b835b8917bc689a8
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commitbf8c274a5731f1fb596ebb8d40b9ef5ae308ea0e
parent94e9cbf8ee727516980c6dea66f578a489465e70
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeThu, 5 Feb 2026 10:25:44 +0100