summaryrefslogtreecommitdiffstats
path: root/core/config
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-26 16:36:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 16:36:47 +0200
commitda91cf93678748308717c6375508f285f4647c55 (patch)
tree58c8d23cbe6e068fe80e9c9a5d0247c542e351be /core/config
parent9b0b441cf386d4420b1ecc1ae3d39eff09dd2d23 (diff)
parent3f4513d4deaa9eed192fe13b6ce5ad9cb6751917 (diff)
downloadredot-engine-da91cf93678748308717c6375508f285f4647c55.tar.gz
Merge pull request #82347 from SaracenOne/dir_access_checks
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();