QtQml: Check object wrapper for null in ensureWrapper()
The object can have been marked for deletion already, in which case the
wrapper is legitimately null.
Amends commit b871644b31a5fc1f410e0759f0b51f5418dc8f34.
Pick-to: 6.12 6.8
Fixes: QTBUG-151124
Change-Id: I607e59ad3cc31d850c110591c28c4061a06ebfff
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
| commit | 130600466af22ef51c54845a94d7fc917c1f949c |
| parent | 0a2afec82b2d9b501c730ca77185c07e713a1f53 |
| author | Ulf Hermann <ulf.hermann@qt.io> |
| committer | Ulf Hermann <ulf.hermann@qt.io> |
| commit time | Mon, 12 Oct 2026 12:28:16 +0000 |