diff --git a/plugins/clipboard/clipboardlistener.cpp b/plugins/clipboard/clipboardlistener.cpp index 2972aca93..0327c6f62 100644 --- a/plugins/clipboard/clipboardlistener.cpp +++ b/plugins/clipboard/clipboardlistener.cpp @@ -61,7 +61,7 @@ void ClipboardListener::updateClipboard(QClipboard::Mode mode) } ClipboardListener::ClipboardContentType contentType = ClipboardListener::ClipboardContentTypeUnknown; - if (clipboard->mimeData(mode)->data(QStringLiteral("x-kde-passwordManagerHint")) == QByteArrayLiteral("secret")) { + if (clipboard->mimeData(mode) && clipboard->mimeData(mode)->data(QStringLiteral("x-kde-passwordManagerHint")) == QByteArrayLiteral("secret")) { contentType = ClipboardListener::ClipboardContentTypePassword; }