1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(login): Don't dereference null pointer

Fix #5032
This commit is contained in:
Anthony Bilinski 2018-03-24 16:38:59 -07:00
parent 0be49c648c
commit 703876c372
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -331,7 +331,9 @@ int main(int argc, char* argv[])
LoginScreen loginScreen{}; LoginScreen loginScreen{};
loginScreen.exec(); loginScreen.exec();
profile = loginScreen.getProfile(); profile = loginScreen.getProfile();
profileName = profile->getName(); if (profile) {
profileName = profile->getName();
}
} }
if (!profile) { if (!profile) {