Permalink
Browse files

Guard for #97

  • Loading branch information...
1 parent 9a45bf3 commit f4fae187b31e37f72a1ba919b92413ac8424d238 @youknowone youknowone committed Oct 20, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 OSX/HangulComposer.m
@@ -430,6 +430,9 @@ + (NSString *)commitStringByCombinationModeWithUCSString:(const HGUCSChar *)UCSS
dassert(name);
dassert(name.length);
SEL selector = NSSelectorFromString(name);
+ if (selector == nil) {
+ selector = @selector(stringByRemovingFillerWithUCSString:);
+ }
return [NSString performSelector:selector withObject:(id)UCSString];
}
@@ -444,6 +447,9 @@ + (NSString *)composedStringByCombinationModeWithUCSString:(const HGUCSChar *)UC
dassert(name);
dassert(name.length);
SEL selector = NSSelectorFromString(name);
+ if (selector == nil) {
+ selector = @selector(stringByRemovingFillerWithUCSString:);
+ }
return [NSString performSelector:selector withObject:(id)UCSString];
}

0 comments on commit f4fae18

Please sign in to comment.