зеркало из https://github.com/mono/ikvm-fork.git
Don't crash with NPE if LoadWithPartialName doesn't find the referenced assembly.
This commit is contained in:
Родитель
dc92060a5a
Коммит
b3d8c9ab49
|
@ -411,7 +411,11 @@ class IkvmcCompiler
|
|||
{
|
||||
#pragma warning disable 618
|
||||
// Assembly.LoadWithPartialName is obsolete
|
||||
asm = StaticCompiler.LoadFile(Assembly.LoadWithPartialName(r).Location);
|
||||
Assembly found = Assembly.LoadWithPartialName(r);
|
||||
if (found != null)
|
||||
{
|
||||
asm = StaticCompiler.LoadFile(found.Location);
|
||||
}
|
||||
#pragma warning restore
|
||||
}
|
||||
catch (FileLoadException)
|
||||
|
|
Загрузка…
Ссылка в новой задаче