fix_crash (#2649)
This commit is contained in:
parent
3c54499a40
commit
a46c7156dd
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ bool TabSupervisor::isOwnUserRegistered() const
|
|||
|
||||
QString TabSupervisor::getOwnUsername() const
|
||||
{
|
||||
return QString::fromStdString(userInfo->name());
|
||||
return userInfo ? QString::fromStdString(userInfo->name()) : QString();
|
||||
}
|
||||
|
||||
bool TabSupervisor::isUserBuddy(const QString &userName) const
|
||||
|
|
Loading…
Reference in a new issue