From 47621d743696a4f801d89774be318ab4ba1af5f9 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Fri, 10 Mar 2023 22:37:27 +0800 Subject: [PATCH] Added extra line to log an error if a null assembly is detected --- SHADE_Managed/src/Scripts/ScriptStore.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SHADE_Managed/src/Scripts/ScriptStore.cxx b/SHADE_Managed/src/Scripts/ScriptStore.cxx index d1931c59..9ef447bf 100644 --- a/SHADE_Managed/src/Scripts/ScriptStore.cxx +++ b/SHADE_Managed/src/Scripts/ScriptStore.cxx @@ -883,7 +883,10 @@ namespace SHADE System::Collections::Generic::IEnumerable^ selectorFunc(System::Reflection::Assembly^ assembly) { if (assembly == nullptr) + { + Debug::LogError("[ScriptStore] Received null assembly while collecting Script types. This should not happen!"); return nullptr; + } return assembly->GetExportedTypes(); } Pair^ resultSelectorFunc(System::Reflection::Assembly^ assembly, System::Type^ type)