mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
fix(cli): avoid crash if not name is given in uri
This commit is contained in:
parent
7f1a767fd2
commit
55c1776667
1 changed files with 6 additions and 1 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue