diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index b02a94a378..b86afe8b70 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -234,6 +234,9 @@ QVector SeatInterface::Private::touchsForSurface(SurfaceInterf QVector SeatInterface::Private::dataDevicesForSurface(SurfaceInterface *surface) const { + if (!surface) { + return {}; + } QVector primarySelectionDevices; for (auto it = dataDevices.constBegin(); it != dataDevices.constEnd(); ++it) { if ((*it)->client() == *surface->client()) {