зеркало из https://github.com/dotnet/spark.git
Check whether file is found before trying to dereference it (#759)
This commit is contained in:
Родитель
059686cc2d
Коммит
d252590bb7
|
@ -264,7 +264,7 @@ namespace Microsoft.Spark.Utils
|
||||||
{
|
{
|
||||||
Type type = AssemblyLoader.LoadAssembly(
|
Type type = AssemblyLoader.LoadAssembly(
|
||||||
td.AssemblyName,
|
td.AssemblyName,
|
||||||
td.AssemblyFileName).GetType(td.Name);
|
td.AssemblyFileName)?.GetType(td.Name, true);
|
||||||
if (type == null)
|
if (type == null)
|
||||||
{
|
{
|
||||||
throw new FileNotFoundException(
|
throw new FileNotFoundException(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче