mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed null methodDef selection in failed attribute
This commit is contained in:
parent
f520932516
commit
be0c4e5d88
1 changed files with 6 additions and 0 deletions
|
@ -12232,6 +12232,12 @@ void BfModule::GetCustomAttributes(BfCustomAttributes* customAttributes, BfAttri
|
||||||
if (methodMatcher.mBestMethodDef == NULL)
|
if (methodMatcher.mBestMethodDef == NULL)
|
||||||
methodMatcher.mBestMethodDef = methodMatcher.mBackupMethodDef;
|
methodMatcher.mBestMethodDef = methodMatcher.mBackupMethodDef;
|
||||||
|
|
||||||
|
if (methodMatcher.mBestMethodDef == NULL)
|
||||||
|
{
|
||||||
|
AssertErrorState();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
BF_ASSERT(methodMatcher.mBestMethodDef != NULL);
|
BF_ASSERT(methodMatcher.mBestMethodDef != NULL);
|
||||||
customAttribute.mCtor = methodMatcher.mBestMethodDef;
|
customAttribute.mCtor = methodMatcher.mBestMethodDef;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue