mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Fix a crash if no selector could be found
This commit is contained in:
parent
d560a640ad
commit
3b9f38fd16
@ -599,7 +599,9 @@ static const char *findSEL (const char *imageName, NSString *imageUUID, uint64_t
|
||||
// get the SEL
|
||||
const char *foundSelector = findSEL([imageForRegAddress.imageName UTF8String], imageForRegAddress.imageUUID, regAddress - (uint64_t)imageForRegAddress.imageBaseAddress);
|
||||
|
||||
return [NSString stringWithUTF8String:foundSelector];
|
||||
if (foundSelector != NULL) {
|
||||
return [NSString stringWithUTF8String:foundSelector];
|
||||
}
|
||||
}
|
||||
|
||||
return nil;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user