This commit is contained in:
arm64v8a
2022-11-29 10:15:57 +09:00
parent 1b9edf3697
commit a973c3f4ad
5 changed files with 20 additions and 15 deletions

View File

@@ -19,7 +19,8 @@ namespace NekoRay {
void ProfileManager::LoadManager() {
for (auto id: _profiles) {
auto ent = LoadProxyEntity(QString("profiles/%1.json").arg(id));
if (ent->bean->version == -114514) { // clear invaild profile
if (ent == nullptr || ent->bean == nullptr || ent->bean->version == -114514) {
// clear invaild profile
DeleteProfile(id);
continue;
}