Commit 55c17766 authored by Ronan's avatar Ronan

fix(cli): avoid crash if not name is given in uri

parent 7f1a767f
Pipeline #394 failed with stage
in 0 seconds
......@@ -372,7 +372,12 @@ void Cli::executeCommand (const QString &command, CommandFormat *format) {
*format = UriFormat;
// Execute uri command.
qInfo() << QStringLiteral("Execute uri command: `%1`.").arg(command);
qInfo() << QStringLiteral("Execute uri command: `%1`...").arg(command);
if (address->getUsername().empty()) {
qWarning() << QStringLiteral("Failed to execute command. No username given.");
return;
}
string scheme = address->getScheme();
for (const string &validScheme : { "sip", "sip-linphone", "sips", "sips-linphone" })
......
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