Fixed a possible NRE (raised with Glu)
This commit is contained in:
parent
38df75ed51
commit
e65c0c13e7
1 changed files with 3 additions and 2 deletions
|
@ -264,7 +264,8 @@ namespace Bind.Structures
|
|||
Pointer = false;
|
||||
WrapperType = WrapperTypes.None;
|
||||
}
|
||||
else if (CurrentType.ToLower().Contains("void") || PreviousType.ToLower().Contains("void")) /*|| CurrentType.Contains("IntPtr"))*/
|
||||
else if (CurrentType.ToLower().Contains("void") ||
|
||||
(!String.IsNullOrEmpty(PreviousType) && PreviousType.ToLower().Contains("void"))) /*|| CurrentType.Contains("IntPtr"))*/
|
||||
{
|
||||
CurrentType = "IntPtr";
|
||||
Pointer = false;
|
||||
|
@ -273,7 +274,7 @@ namespace Bind.Structures
|
|||
}
|
||||
|
||||
if (Reference)
|
||||
WrapperType = WrapperTypes.ReferenceParameter;
|
||||
WrapperType |= WrapperTypes.ReferenceParameter;
|
||||
|
||||
// This causes problems with bool arrays
|
||||
//if (CurrentType.ToLower().Contains("bool"))
|
||||
|
|
Loading…
Reference in a new issue