Skip to content

Test for nullptr before dereferencing the screen

Touch event processing might still be ongoing even after the screen has been disconnected. If that screen was also the primary screen, we would dereference nullptr.

Check for nullptr to avoid potential crashes during shutdown.

Fixes: QTBUG-95192 Pick-to: 6.2 5.15 Change-Id: I49ccd30c4126fe12cf5bb675e532e6e59b40b9c1 Reviewed-by: Shawn Rutledge shawn.rutledge@qt.io (cherry picked from commit 30b0b724)

  • asturmlechner 2022-03-03: Resolve conflict with dev branch commit 4b899a29

Merge request reports