Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
None
-
4d261c1b5 (dev), 2c12c9b01 (6.6), 8ed2bc919 (dev)
Description
Found as part of https://codereview.qt-project.org/c/qt/qtbase/+/481727 , cf. QTBUG-114206
Testcase:
S a; QVERIFY(a.isNull()); S empty = ""; QVERIFY(empty.isEmpty()); QVERIFY(!empty.isNull()); S result = a; result += empty; QVERIFY(result.isEmpty()); QVERIFY(!result.isNull());
If S is QString, this passes. If S is QByteArray, this fails (result is null).
Attachments
Issue Links
- relates to
-
QTBUG-114317 QStringBuilder does not necessarily preserve nullness
- Closed