Skip to content

Commit d252590

Browse files
authored
Check whether file is found before trying to dereference it (#759)
1 parent 059686c commit d252590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/csharp/Microsoft.Spark/Utils/UdfSerDe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private static Type DeserializeType(TypeData typeData) =>
264264
{
265265
Type type = AssemblyLoader.LoadAssembly(
266266
td.AssemblyName,
267-
td.AssemblyFileName).GetType(td.Name);
267+
td.AssemblyFileName)?.GetType(td.Name, true);
268268
if (type == null)
269269
{
270270
throw new FileNotFoundException(

0 commit comments

Comments
 (0)