Skip to content

Commit 9dd0c43

Browse files
authored
Fix nullt ypereference error for big .NET helper (#28)
1 parent 2174ee9 commit 9dd0c43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nanoFramework.Serialization.Helper/BinaryFormatter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,11 @@ internal bool AddType(Type t)
17861786
//Ok, this is really evil. But it's this or 800 exceptions trying to load assemblies through BF.Initialize
17871787

17881788
//This is for dealing with generics
1789+
if(t.FullName == null)
1790+
{
1791+
return false;
1792+
}
1793+
17891794
if (t.FullName.IndexOf('`') >= 0)
17901795
{
17911796
return false;

0 commit comments

Comments
 (0)