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