Changeset 1023

Show
Ignore:
Timestamp:
02/02/09 16:28:22 (1 year ago)
Author:
gbooker
Message:

Check to make sure this string isn't nil before we try to use it and throw an exception

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Subtitles/SubUtilities.m

    r1016 r1023  
    5151NSMutableString *STStandardizeStringNewlines(NSString *str) 
    5252{ 
     53        if(str == nil) 
     54                return nil; 
    5355        NSMutableString *ms = [NSMutableString stringWithString:str]; 
    5456        [ms replaceOccurrencesOfString:@"\r\n" withString:@"\n" options:0 range:NSMakeRange(0,[ms length])];