Added extra check to handle null assemblies when collecting script assemblies

This commit is contained in:
Kah Wei 2023-03-10 19:24:38 +08:00
parent 062c11afa0
commit d061b84e01
1 changed files with 2 additions and 0 deletions

View File

@ -882,6 +882,8 @@ namespace SHADE
System::Collections::Generic::IEnumerable<System::Type^>^ selectorFunc(System::Reflection::Assembly^ assembly)
{
if (assembly == nullptr)
return nullptr;
return assembly->GetExportedTypes();
}
Pair^ resultSelectorFunc(System::Reflection::Assembly^ assembly, System::Type^ type)