Checking if the command is not an empty string.
This commit is contained in:
parent
e743156888
commit
6c703e122a
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue