mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed errors with null param typeref
This commit is contained in:
parent
332bebe4ff
commit
323e69bbd6
2 changed files with 5 additions and 4 deletions
|
@ -614,7 +614,8 @@ String BfMethodDef::ToString()
|
|||
methodText += ", ";
|
||||
if (paramDef->mParamKind == BfParamKind_Params)
|
||||
methodText += "params ";
|
||||
paramDef->mTypeRef->ToString(methodText);
|
||||
if (paramDef->mTypeRef != NULL)
|
||||
paramDef->mTypeRef->ToString(methodText);
|
||||
methodText += " ";
|
||||
methodText += paramDef->mName;
|
||||
if ((paramDef->mParamDeclaration != NULL) && (paramDef->mParamDeclaration->mInitializer != NULL))
|
||||
|
@ -3618,7 +3619,7 @@ int BfSystem::GetGenericParamIdx(const Array<BfGenericParamDef*>& genericParams,
|
|||
|
||||
int BfSystem::GetGenericParamIdx(const Array<BfGenericParamDef*>& genericParams, BfTypeReference* typeRef)
|
||||
{
|
||||
if (!typeRef->IsA<BfNamedTypeReference>())
|
||||
if ((typeRef == NULL) || (!typeRef->IsA<BfNamedTypeReference>()))
|
||||
return -1;
|
||||
return GetGenericParamIdx(genericParams, typeRef->ToString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue