a11y atspi: add null checks in table iface methods
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
commit90b1eafbfe9fb3e9999e8d7ec84cbb138ef18b5f
treec55b2dfc1c877a80d3bf2a12b0d4c6163935a64b
parenta4af86c5a2264a0259e2bb8fc0029a3f3c9cd45f
a11y atspi: add null checks in table iface methods

Origin: upstream, https://invent.kde.org/qt/qt/qtbase/-/commit/076da096464a5d3f
Last-Update: 2025-03-24
Bug: https://bugs.debian.org/1081682

Add null checks to cover the cases where QAccessibleTableInterface::cellAt
returns nullptr (which happens e.g. when called with invalid indices via
AT-SPI) or where the cell object doesn't implement the
QAccessibleTableCellInterface, which would previously result in crashes.

Cherry-picked into 5.15 as it fixes a crash in popular accessibility client
software. Conflict resolution: remove C++17'isms (`if` with initializer).

Gbp-Pq: Name a11y_null_checks.diff
src/platformsupport/linuxaccessibility/atspiadaptor.cpp