diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index fcd8c8259..d9cc3660e 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -504,7 +504,8 @@ namespace hex::plugin::builtin { auto fileName = hex::format("{:%y%m%d_%H%M%S}.json", fmt::gmtime(std::chrono::system_clock::now())); fs::File recentFile(recentPath / fileName, fs::File::Mode::Create); - recentFile.write(provider->storeSettings().dump(4)); + if (auto settings = provider->storeSettings(); !settings.is_null()) + recentFile.write(settings.dump(4)); } updateRecentProviders();