From 7f6fb5b016df3485a5a9f16dfd20e4d3b9aba08b Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 30 Nov 2001 13:18:01 +0000 Subject: [PATCH] Use a warning, do not throw an exception, when setStringValue: is called with nil argument git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11572 72102866-910b-0410-8b05-ffd578937521 --- Source/NSCell.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/NSCell.m b/Source/NSCell.m index 2a8558148..5205a8c53 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -324,8 +324,12 @@ static NSColor *shadowCol; { NSString *string = aString; - /* We refuse nil for compatibiliy with MacOS X, which refuses nil */ - NSAssert (string != nil, NSInvalidArgumentException); + /* We warn about nil for compatibiliy with MacOS X, which refuses + nil */ + if (string == nil) + { + NSWarnMLog (@"attempt to use nil as string value"); + } _cell.type = NSTextCellType; _cell.contents_is_attributed_string = NO;