Browse Source

Check for empty names when checking for classes type references.

pull/12/merge
triton 12 years ago
parent
commit
e600aba110
  1. 3
      src/Generator/Types/Types.cs

3
src/Generator/Types/Types.cs

@ -195,6 +195,9 @@ namespace CppSharp
if (@class.IsIncomplete) if (@class.IsIncomplete)
goto OutVisited; goto OutVisited;
if (string.IsNullOrWhiteSpace(@class.Name))
goto OutVisited;
var unitClass = unit.FindClass(@class.Name); var unitClass = unit.FindClass(@class.Name);
if (unitClass == null || unitClass.IsIncomplete) if (unitClass == null || unitClass.IsIncomplete)
goto OutVisited; goto OutVisited;

Loading…
Cancel
Save