summaryrefslogtreecommitdiffstats
path: root/core/config
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2023-09-26 03:07:43 +0100
committerSaracen <SaracenOne@gmail.com>2023-09-26 03:07:43 +0100
commit3f4513d4deaa9eed192fe13b6ce5ad9cb6751917 (patch)
tree481e7342720add932d55bd8f9558ca97b4fa1541 /core/config
parent43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff)
downloadredot-engine-3f4513d4deaa9eed192fe13b6ce5ad9cb6751917.tar.gz
Add error checks for DirAccess creation.
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp1
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();