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

This commit is contained in:
Mitchell Livingston 2008-02-14 04:38:33 +00:00
parent 33f77798d3
commit 215c31f55c
1 changed files with 2 additions and 2 deletions

View File

@ -708,12 +708,12 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
- (NSString *) comment
{
return [NSString stringWithUTF8String: fInfo->comment];
return fInfo->comment != NULL ? [NSString stringWithUTF8String: fInfo->comment] : @"";
}
- (NSString *) creator
{
return [NSString stringWithUTF8String: fInfo->creator];
return fInfo->creator != NULL ? [NSString stringWithUTF8String: fInfo->creator] : @"";
}
- (NSDate *) dateCreated