fix inspector display error caused by the last commit allowing null field values
This commit is contained in:
parent
33f77798d3
commit
215c31f55c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue