Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
don't let us pass nil strings into -[NSAttributedString initWithString:]
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Apr 16, 2012
1 parent c85ebc5 commit 4a78970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/UIKit/TUIAttributedString.m
Expand Up @@ -26,7 +26,7 @@ @implementation TUIAttributedString

+ (TUIAttributedString *)stringWithString:(NSString *)string
{
return (TUIAttributedString *)[[NSMutableAttributedString alloc] initWithString:string];
return (TUIAttributedString *)[[NSMutableAttributedString alloc] initWithString:string ? : @""];
}

@end
Expand Down

0 comments on commit 4a78970

Please sign in to comment.