1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Crash fix for GetCustomAttribute in no-attribute case

This commit is contained in:
Brian Fiete 2021-06-24 06:59:49 -07:00
parent e3db26004b
commit b122655a46

View file

@ -3295,6 +3295,9 @@ bool CeContext::GetStringFromStringView(addr_ce addr, StringImpl& str)
bool CeContext::GetCustomAttribute(BfCustomAttributes* customAttributes, int attributeTypeId, addr_ce resultAddr)
{
if (customAttributes == NULL)
return false;
BfType* attributeType = GetBfType(attributeTypeId);
if (attributeType == NULL)
return false;