Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7
-
None
-
9d8e78a2f (dev), 5d53ea984 (6.7), c24716c7f (6.6)
Description
When applying https://codereview.qt-project.org/c/qt/qtdeclarative/+/521753/11/src/qmltest/SignalSpy.qml#74
and afterwards running
tst_basic -input qtdeclarative/tests/auto/quickcontrols/controls/data/tst_abstractbutton.qml AbstractButton::test_mnemonic
a warning is printed:
> TypeError: Cannot read property 'qtest_disconnectFromTarget' of null
When running with QML_DISABLE_DISK_CACHE=1, the warning disappears, which is the expected outcome given that the if condition already checks that spy is not null.
I suspect that we might assume that the id is never null, and thus optimize the check away?