瀏覽代碼

Merge pull request #47374 from timothyqiu/check-section

Check section existance before getting keys
Rémi Verschelde 4 年之前
父節點
當前提交
6bb1eb8212
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/import_dock.cpp

+ 4 - 0
editor/import_dock.cpp

@@ -194,6 +194,10 @@ void ImportDock::set_edit_multiple_paths(const Vector<String> &p_paths) {
 			}
 			}
 		}
 		}
 
 
+		if (!config->has_section("params")) {
+			continue;
+		}
+
 		List<String> keys;
 		List<String> keys;
 		config->get_section_keys("params", &keys);
 		config->get_section_keys("params", &keys);