Added warning if custom class or name comes back nil.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-07-05 04:03:58 +00:00
parent 6c4dab7c20
commit fc17434efb
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-07-05 00:02 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Added check to prevent error
if customclass or name comes back nil.
2006-07-03 17:18 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Remove category for NSView

View file

@ -249,7 +249,11 @@
{
NSString *name = [document nameForObject: o];
NSString *customClass = NSMapGet(classes, o);
[classManager setCustomClass: customClass forName: name];
if(name != nil && customClass != nil)
{
NSLog(@"Name or class is nil.");
[classManager setCustomClass: customClass forName: name];
}
}
//