mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
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:
parent
1649aa007e
commit
6b09ae9892
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue