From e600aba110c1f87714db2e9d9c164430b0ee4a90 Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 14 Jul 2013 19:33:28 +0100 Subject: [PATCH] Check for empty names when checking for classes type references. --- src/Generator/Types/Types.cs | 3 +++ 1 file changed, 3 insertions(+) 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;