Added extra line to log an error if a null assembly is detected

This commit is contained in:
Kah Wei 2023-03-10 22:37:27 +08:00
parent d061b84e01
commit 47621d7436
1 changed files with 3 additions and 0 deletions

View File

@ -883,7 +883,10 @@ namespace SHADE
System::Collections::Generic::IEnumerable<System::Type^>^ 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)