From a20f5db598fa27256e9bdf7c4a3070a00d5d3964 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 20 Mar 2020 01:06:28 +0100 Subject: [PATCH] Fix testTabletInterface --- src/wayland/server/tablet_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/server/tablet_interface.cpp b/src/wayland/server/tablet_interface.cpp index 554dd1c764..b296323e09 100644 --- a/src/wayland/server/tablet_interface.cpp +++ b/src/wayland/server/tablet_interface.cpp @@ -155,6 +155,9 @@ public: wl_resource *targetResource() { + if (!m_surface) + return nullptr; + ClientConnection *client = m_surface->client(); const Resource *r = resourceMap().value(*client); return r ? r->handle : nullptr;