Added proper handling for loaded null managed assemblies #424

Merged
Pycorax merged 2 commits from SP3-6-c-scripting into main 2023-03-10 22:43:56 +08:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit d061b84e01 - Show all commits

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)