_fix tests

This commit is contained in:
2023-05-21 20:24:21 +03:00
parent d65af4c621
commit 68c9ff92b9

View File

@@ -191,7 +191,7 @@ namespace FlaxEngine
public static Assembly[] GetAssemblies()
{
#if USE_NETCORE
return AssemblyLoadContext.Default.Assemblies.Concat(NativeInterop.scriptingAssemblyLoadContext.Assemblies).ToArray();
return AssemblyLoadContext.Default.Assemblies.Concat(NativeInterop.scriptingAssemblyLoadContext?.Assemblies ?? Enumerable.Empty<Assembly>()).ToArray();
#else
return AppDomain.CurrentDomain.GetAssemblies();
#endif