mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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…
Add table
Add a link
Reference in a new issue