[plugins/clipboard] Check for null mimedata
BUG: 461875
This commit is contained in:
parent
01d18a7cbc
commit
1fbbeb823d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue