Commit 6e261219 authored by Méven Car's avatar Méven Car Committed by Méven Car
Browse files

KSystemclipboard: add a nullcheck

CCBUG: 447060
parent e8e6b8ab
Pipeline #111384 passed with stage
in 51 seconds
......@@ -46,7 +46,10 @@ KSystemClipboard *KSystemClipboard::instance()
QString KSystemClipboard::text(QClipboard::Mode mode)
{
const QMimeData *data = mimeData(mode);
return data->text();
if (data) {
return data->text();
}
return QString();
}
KSystemClipboard::KSystemClipboard(QObject *parent)
......
Markdown is supported
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