Fix for github bug #289

This commit is contained in:
Richard Frith-Macdonald 2023-03-23 21:38:46 +00:00
parent 8209793ac7
commit c7125ec291
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2022-03-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTimer.m: wrap call to block in exception handler (bug #289)
2023-01-13 Frederik Seiffert <frederik@algoriddim.com>
* Source/Additions/GSInsensitiveDictionary.m:

View file

@ -290,7 +290,17 @@ static Class NSDate_class;
{
if ((id)_block != nil)
{
CALL_NON_NULL_BLOCK(_block, self);
NS_DURING
{
CALL_NON_NULL_BLOCK(_block, self);
}
NS_HANDLER
{
NSLog(@"*** NSTimer ignoring exception '%@' (reason '%@') "
@"raised during posting of timer with block",
[localException name], [localException reason]);
}
NS_ENDHANDLER
}
else
{