Commit e5c117eb authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[plugins/clipboard] Check for null mimedata

BUG: 461875
(cherry picked from commit 1fbbeb82)
parent df8248e9
Pipeline #269988 passed with stage
in 18 minutes and 12 seconds
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment