Prevent crash when trying to load a cluster configuration when not being part of the cluster

This commit is contained in:
Alexander Bock
2024-04-19 18:29:51 +02:00
parent c5f9044c55
commit cbca89e098
3 changed files with 6 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ project(OpenSpace)
set(OPENSPACE_VERSION_MAJOR 0)
set(OPENSPACE_VERSION_MINOR 20)
set(OPENSPACE_VERSION_PATCH 0)
set(OPENSPACE_VERSION_STRING "<dev>")
set(OPENSPACE_VERSION_STRING "rc-1")
include(${PROJECT_SOURCE_DIR}/support/cmake/module_common.cmake)
include(${PROJECT_SOURCE_DIR}/ext/ghoul/support/cmake/message_macros.cmake)

View File

@@ -251,6 +251,10 @@ void LuaConsole::initialize() {
void LuaConsole::deinitialize() {
ZoneScoped;
if (!FileSys.cacheManager()) {
return;
}
const std::filesystem::path filename = FileSys.cacheManager()->cachedFilename(
HistoryFile,
""