Avoid dereferencing nullptr
In addStatesToRenderStateSet, when looking up a state ID, the returned RenderStateNode can be null, causing a crash. Added a guard to avoid dereferencing the pointer if it is nullptr.
Task-number: QTBUG-100360
Pick-to: 6.3
Change-Id: Id5c8551cd10805421a11724fb80b48ef5823c246
Reviewed-by: Mike Krus <mike.krus@kdab.com>
| commit | 4c612f0361c2dbeb10efde1515807c02942d96f3 |
| parent | e2b05be69e5a84d1bd4523707fb8cce00775c99d |
| author | Harald Vistnes <harald.vistnes@gmail.com> |
| committer | Harald Vistnes <harald.vistnes@gmail.com> |
| commit time | Tue, 8 Feb 2022 12:43:39 +0100 |