aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2019-12-03 16:23:24 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2019-12-05 11:23:52 +0100
commit290251541e615358dcc7a289ff2adb30f309c132 (patch)
tree4ce2d7839a7633839d93c43ba7b8ca5b2d7c47d9 /tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml
parent75c7f093e0b8e321306ae1189b71866a9073df00 (diff)
QQuickPixmapCache: Don't dereference nullptrv5.14.0-rc2v5.14.0
Consistently check that job->data is not null before derefencing it. Fixes: QTBUG-80510 Fixes: QTBUG-79937 Change-Id: I894503ddd2254814463073cc12f8365641efc689 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml')
-rw-r--r--tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml b/tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml
new file mode 100644
index 0000000000..5331be5a15
--- /dev/null
+++ b/tests/auto/quick/qquickpixmapcache/data/asynchronousNoCache.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.12
+
+Item {
+ visible: true
+ width: 640
+ height: 480
+
+ Image{
+ asynchronous: true
+ anchors.fill: parent
+ fillMode: Image.Stretch
+ source: "exists1.png"
+ cache: false
+ sourceSize.width: width/2
+ sourceSize.height: height/2
+ }
+}