Use an assertion to force setStringValue: to reject nil as argument

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11217 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-10-23 09:37:59 +00:00
parent d4b1464e3e
commit f7e4554107

View file

@ -324,14 +324,11 @@ static NSColor *shadowCol;
{
NSString *string = aString;
NSAssert (string != nil, NSInvalidArgumentException);
_cell.type = NSTextCellType;
_cell.contents_is_attributed_string = NO;
if (string == nil)
{
string = @"";
}
if (_formatter == nil)
{
ASSIGN (_contents, string);