From 6c703e122aad0be3198cb4e21fe9bd8ccd5ea5a7 Mon Sep 17 00:00:00 2001 From: Caio Carvalho Date: Thu, 16 Aug 2018 18:59:47 +0200 Subject: [PATCH] Checking if the command is not an empty string. --- src/util/externalcommandhelper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/externalcommandhelper.cpp b/src/util/externalcommandhelper.cpp index 3778333..4d07394 100644 --- a/src/util/externalcommandhelper.cpp +++ b/src/util/externalcommandhelper.cpp @@ -267,6 +267,11 @@ QVariantMap ExternalCommandHelper::start(const QByteArray& signature, const quin return reply; } + if (command.isEmpty()) { + reply[QStringLiteral("success")] = false; + return reply; + } + QByteArray request; request.setNum(nonce); request.append(command.toUtf8());