mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
add an extra check when generating status strings in a TorrentCell
This commit is contained in:
parent
712ee263de
commit
09708264f9
1 changed files with 3 additions and 0 deletions
|
@ -803,6 +803,9 @@
|
||||||
|
|
||||||
- (NSAttributedString *) attributedStatusString: (NSString *) string
|
- (NSAttributedString *) attributedStatusString: (NSString *) string
|
||||||
{
|
{
|
||||||
|
#warning we shouldn't have to do this
|
||||||
|
if (!string)
|
||||||
|
string = @"";
|
||||||
return [[[NSAttributedString alloc] initWithString: string attributes: fStatusAttributes] autorelease];
|
return [[[NSAttributedString alloc] initWithString: string attributes: fStatusAttributes] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue