diff options
| -rw-r--r-- | common/file.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp index 11dbdb569f..bcb62f8bb4 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -114,7 +114,7 @@ void File::addDefaultDirectory(const FilesystemNode &directory) {  }  void File::addDefaultDirectoryRecursive(const FilesystemNode &dir, int level, const String &prefix) { -	if (level <= 0) +	if (level <= 0 || !dir.exists() || !dir.isDirectory())  		return;  	FSList fslist;  | 
