Ignore:
Timestamp:
Feb 14, 2008, 4:38:33 AM (14 years ago)
Author:
livings124
Message:

fix inspector display error caused by the last commit allowing null field values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r4930 r5035  
    709709- (NSString *) comment
    710710{
    711     return [NSString stringWithUTF8String: fInfo->comment];
     711    return fInfo->comment != NULL ? [NSString stringWithUTF8String: fInfo->comment] : @"";
    712712}
    713713
    714714- (NSString *) creator
    715715{
    716     return [NSString stringWithUTF8String: fInfo->creator];
     716    return fInfo->creator != NULL ? [NSString stringWithUTF8String: fInfo->creator] : @"";
    717717}
    718718
Note: See TracChangeset for help on using the changeset viewer.