summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-31 21:31:42 +0200
committerGitHub <noreply@github.com>2021-03-31 21:31:42 +0200
commitbb90d3adc9f098a4d8f3fde8efd5774e76adfe47 (patch)
treee7b2e0874e4374fd540033f09d2e27302f4ba067
parent5d0cc7c15f41b8a361ca1559c83a5ccdaeb5a405 (diff)
parent618dd892f59be0f1d527da29b8cd904ad67bc915 (diff)
Merge pull request #47534 from likeich/fix_gdnative_null_config
Fix gdnative config file set as null
-rw-r--r--modules/gdnative/gdnative.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp
index 86bd8b820d..0de6b27d27 100644
--- a/modules/gdnative/gdnative.cpp
+++ b/modules/gdnative/gdnative.cpp
@@ -159,6 +159,8 @@ void GDNativeLibrary::_get_property_list(List<PropertyInfo> *p_list) const {
}
void GDNativeLibrary::set_config_file(Ref<ConfigFile> p_config_file) {
+ ERR_FAIL_COND(p_config_file.is_null());
+
set_singleton(p_config_file->get_value("general", "singleton", default_singleton));
set_load_once(p_config_file->get_value("general", "load_once", default_load_once));
set_symbol_prefix(p_config_file->get_value("general", "symbol_prefix", default_symbol_prefix));