-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7
-
None
-
796dd2ab8 (dev), 072048f98 (6.7)
property QtObject target: null
Component.onCompleted: {
target?.destroy()
}
qrc:/qt/qml/Truc/Main.qml:11: TypeError: Cannot read property 'destroy' of null
It should not attempt to call destroy and simply return undefined.
This was introduced by https://codereview.qt-project.org/c/qt/qtdeclarative/+/515973
For Gerrit Dashboard: QTBUG-120504 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
528197,2 | qv4codegen: Do not call functions on null objects inside optional chains | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
528782,2 | qv4codegen: Do not call functions on null objects inside optional chains | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |