diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 4cc05d1..07eea64 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1444,7 +1444,7 @@ SP Aquamarine::CDRMOutput::getBackend() { } bool Aquamarine::CDRMOutput::setCursor(SP buffer, const Vector2D& hotspot) { - if (!buffer->dmabuf().success) { + if (buffer && !buffer->dmabuf().success) { backend->backend->log(AQ_LOG_ERROR, "drm: Cursor buffer has to be a dmabuf"); return false; }