Added proper handling for loaded null managed assemblies #424
|
@ -883,7 +883,10 @@ namespace SHADE
|
||||||
System::Collections::Generic::IEnumerable<System::Type^>^ selectorFunc(System::Reflection::Assembly^ assembly)
|
System::Collections::Generic::IEnumerable<System::Type^>^ selectorFunc(System::Reflection::Assembly^ assembly)
|
||||||
{
|
{
|
||||||
if (assembly == nullptr)
|
if (assembly == nullptr)
|
||||||
|
{
|
||||||
|
Debug::LogError("[ScriptStore] Received null assembly while collecting Script types. This should not happen!");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
}
|
||||||
return assembly->GetExportedTypes();
|
return assembly->GetExportedTypes();
|
||||||
}
|
}
|
||||||
Pair^ resultSelectorFunc(System::Reflection::Assembly^ assembly, System::Type^ type)
|
Pair^ resultSelectorFunc(System::Reflection::Assembly^ assembly, System::Type^ type)
|
||||||
|
|
Loading…
Reference in New Issue