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

Fixed null methodDef selection in failed attribute

This commit is contained in:
Brian Fiete 2022-08-23 12:55:11 -07:00
parent f520932516
commit be0c4e5d88

View file

@ -12232,6 +12232,12 @@ void BfModule::GetCustomAttributes(BfCustomAttributes* customAttributes, BfAttri
if (methodMatcher.mBestMethodDef == NULL)
methodMatcher.mBestMethodDef = methodMatcher.mBackupMethodDef;
if (methodMatcher.mBestMethodDef == NULL)
{
AssertErrorState();
continue;
}
BF_ASSERT(methodMatcher.mBestMethodDef != NULL);
customAttribute.mCtor = methodMatcher.mBestMethodDef;