diff --git a/src/Generator/Types/Types.cs b/src/Generator/Types/Types.cs index 56b90975..1d53d501 100644 --- a/src/Generator/Types/Types.cs +++ b/src/Generator/Types/Types.cs @@ -195,6 +195,9 @@ namespace CppSharp if (@class.IsIncomplete) goto OutVisited; + if (string.IsNullOrWhiteSpace(@class.Name)) + goto OutVisited; + var unitClass = unit.FindClass(@class.Name); if (unitClass == null || unitClass.IsIncomplete) goto OutVisited;