Return nil for nil object

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@15200 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-12-03 02:54:39 +00:00
parent 1649aa007e
commit 6b09ae9892
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2002-12-02 Adam Fedor <fedor@gnu.org>
* GModelDecoder.m ([GormDocument -connectionObjectForObject:]):
Return nil if object is nil.
2002-11-29 Gregory John Casamento <greg_casamento@yahoo.com>
* NOTE: Added a patch submitted by Fabien Vallon to

View file

@ -248,6 +248,8 @@ static BOOL gormFileOwnerDecoded;
is a name for the connection object */
- (id) connectionObjectForObject: object
{
if (object == nil)
return nil;
if (object == gormNibOwner)
object = filesOwner;
else