mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
d4b1464e3e
commit
f7e4554107
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue