diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-12-03 11:41:20 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-12-08 02:37:26 +0100 |
| commit | e9bdafcfad0f09d15b710a3bca5acae2604c14bc (patch) | |
| tree | b1626fd6592279ddabc95e9a044ae072c4bf7e3c /src/qml/compiler/qqmlirbuilder.cpp | |
| parent | 7917b7ad6435b9a340f8c748b17f6ddcc5732544 (diff) | |
Don't dereference nullptr when updating materials
If a texture is nullptr (perhaps because the item has a null-size),
then the material's texture will be nullptr.
Add a testcase; with native slides, a negative-width slider used
to generate a scene graph node violating the preconditions and
resulting in a crash.
Pick-to: 6.2
Fixes: QTBUG-98730
Change-Id: Ica5e8b390f1a2607a5fcc255d6f74a020565319b
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder.cpp')
0 files changed, 0 insertions, 0 deletions
