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:
parent
e3db26004b
commit
b122655a46
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue