Commit 58f4b5da authored by Felix Paul Kühne's avatar Felix Paul Kühne

title decrapifier: add missing exception handling (close #9435)

parent 481df3ef
......@@ -49,9 +49,13 @@
staticString = [staticString stringByReplacingOccurrencesOfString:@" " withString:@" "];
if (staticString.length > 2) {
@try {
if ([staticString characterAtIndex:0] == 0x20)
staticString = [staticString substringFromIndex:1];
}
@catch (NSException *exception) {
}
}
return staticString;
}
......@@ -64,7 +68,12 @@ static inline BOOL isDigit(char c)
// Shortcut to ease reading
static inline unichar c(NSString *string, unsigned index)
{
@try {
return [string characterAtIndex:index];
}
@catch (NSException *exception) {
return 0x00;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment