Handle empty path nicely and be more tolerant of lack of resources.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-25 16:11:44 +00:00
parent b418f0eb9b
commit 151f6ba9b9
2 changed files with 4 additions and 2 deletions

View file

@ -390,7 +390,8 @@ _find_framework(NSString *name)
name, @".framework"]])
{
/* Try creating the bundle. */
bundle = [[self alloc] initWithPath: bundlePath];
if (bundlePath)
bundle = [[self alloc] initWithPath: bundlePath];
}
#if !defined(__MINGW__)
}
@ -431,7 +432,7 @@ _find_framework(NSString *name)
if (bundle == nil)
{
NSLog (@"Could not find framework %@ in any standard location", name);
NSWarnMLog (@"Could not find framework %@ in any standard location", name);
return;
}