Changeset 2135

Show
Ignore:
Timestamp:
11/21/04 12:26:59 (4 years ago)
Author:
timothy
Message:

Prevents a crash if the message we pass to _performEmoticonSubstitutionOnString is nil.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JVDirectChat.m

    r2130 r2135  
    17691769 
    17701770- (void) _performEmoticonSubstitutionOnString:(NSMutableAttributedString *) string { 
     1771        if( ! string || ! [string string] ) return; 
     1772 
    17711773        NSCharacterSet *escapeSet = [NSCharacterSet characterSetWithCharactersInString:@"^[]{}()\\.$*+?|"]; 
    17721774        NSEnumerator *keyEnumerator = [_emoticonMappings keyEnumerator];