Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit cc2656d

Browse files
committed
Type NameSpaces can be Null
1 parent c0ff13c commit cc2656d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text.EnumMemberSerializer/AssemblyExtenstions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static HashSet<Type> GetPublicEnums(this ICollection<Assembly> assemblies
2929
}
3030
var assemblyPublicEnums =
3131
(from publicEnumType in assembly.GetTypes().GetPublicEnums()
32-
where enumNamespaceFilter(publicEnumType.Namespace)
32+
where enumNamespaceFilter(publicEnumType.Namespace ?? string.Empty)
3333
select publicEnumType
3434
).ToList();
3535
enumTypes.AddRange(assemblyPublicEnums);

0 commit comments

Comments
 (0)