diff options
author | Saracen <SaracenOne@gmail.com> | 2023-09-26 03:07:43 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2023-09-26 03:07:43 +0100 |
commit | 3f4513d4deaa9eed192fe13b6ce5ad9cb6751917 (patch) | |
tree | 481e7342720add932d55bd8f9558ca97b4fa1541 /core/config | |
parent | 43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff) | |
download | redot-engine-3f4513d4deaa9eed192fe13b6ce5ad9cb6751917.tar.gz |
Add error checks for DirAccess creation.
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/project_settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 5ba800ebfe..3049994240 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -962,6 +962,7 @@ Error ProjectSettings::_save_custom_bnd(const String &p_file) { // add other par #ifdef TOOLS_ENABLED bool _csproj_exists(String p_root_dir) { Ref<DirAccess> dir = DirAccess::open(p_root_dir); + ERR_FAIL_COND_V(dir.is_null(), false); dir->list_dir_begin(); String file_name = dir->_get_next(); |